Skip to content

Instantly share code, notes, and snippets.

@vade
Created May 9, 2016 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vade/4a1084e697c0a3cb33ffd6ce6fe47f6e to your computer and use it in GitHub Desktop.
Save vade/4a1084e697c0a3cb33ffd6ce6fe47f6e to your computer and use it in GitHub Desktop.
// Timing
videoStream->avg_frame_rate = mDecoder->videoStream->avg_frame_rate;
videoStream->codec->framerate = mDecoder->videoStream->codec->framerate;
videoStream->start_time = mDecoder->videoStream->start_time;
videoStream->duration = mDecoder->videoStream->duration;
videoStream->time_base = mDecoder->videoStream->time_base;
videoStream->codec->time_base = mDecoder->videoStream->codec->time_base;
videoStream->codec->ticks_per_frame = mDecoder->videoStream->codec->ticks_per_frame;
av_stream_set_r_frame_rate( videoStream, mDecoder->videoStream->r_frame_rate );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment