Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support playing movies with libav and fix ffmpeg audio stutter #621

Merged
merged 3 commits into from
Feb 4, 2015

Commits on Feb 3, 2015

  1. Support playing movies with libav

    Makes libav an optional alternative to ffmpeg, selected in cmake.
    
    The intro movie plays perfectly with this libav code.
    TheCycoONE committed Feb 3, 2015
    Configuration menu
    Copy the full SHA
    8dc72bd View commit details
    Browse the repository at this point in the history
  2. Fix stutter in ffmpeg movie audio

    Attempting to calculate the resampling delay for determining the number
    of out samples was actually causing underruns. There is no harm in not
    accounting for any resample delay because any samples not taken are
    buffered for the next conversion.
    TheCycoONE committed Feb 3, 2015
    Configuration menu
    Copy the full SHA
    4967521 View commit details
    Browse the repository at this point in the history
  3. Fix deprecation warnings in th_movies.cpp and free frames properly

    Use av_frame_alloc, av_frame_unref, and av_frame_free instead of their
    earlier equivalents. In the case of av_frame_free we were not using
    the earlier equivalent but av_free.  With these changes avcodec_frame_free
    will be used on versions that don't yet support av_frame_free. FFMPEG
    versions that do not support avcodec_frame_free are not supported with
    this commit.
    TheCycoONE committed Feb 3, 2015
    Configuration menu
    Copy the full SHA
    5710f1c View commit details
    Browse the repository at this point in the history