]> git.sesse.net Git - ffmpeg/commit
ffmpeg: move A/V non-streamcopy initialization to a later point
authorJan Ekström <jeebjp@gmail.com>
Thu, 10 Sep 2020 21:25:21 +0000 (00:25 +0300)
committerJan Ekström <jeebjp@gmail.com>
Thu, 29 Oct 2020 14:59:49 +0000 (16:59 +0200)
commit67be1ce0c6de330b1c10d1d121819d8a74a7b1f5
treecaeabe621f441375705d304bc9ce1c5c1b0b8922
parent3360c9a5679cc9bd83ab5860757ebab8f64ea8ba
ffmpeg: move A/V non-streamcopy initialization to a later point

- For video, this means a single initialization point in do_video_out.
- For audio we unfortunately need to do it in two places just
  before the buffer sink is utilized (if av_buffersink_get_samples
  would still work according to its specification after a call to
  avfilter_graph_request_oldest was made, we could at least remove
  the one in transcode_step).

Other adjustments to make things work:
- As the AVFrame PTS adjustment to encoder time base needs the encoder
  to be initialized, so it is now moved to do_{video,audio}_out,
  right after the encoder has been initialized. Due to this,
  the additional parameter in do_video_out is removed as it is no
  longer necessary.
fftools/ffmpeg.c