Commit c264c64b authored by Julian Rother's avatar Julian Rother
Browse files

transcode: Reset frametype to prevent encoder problems

parent cd626cd2
...@@ -203,6 +203,7 @@ static void flush_filtergraph(AVFormatContext *mux, AVFilterContext **sinks, AVC ...@@ -203,6 +203,7 @@ static void flush_filtergraph(AVFormatContext *mux, AVFilterContext **sinks, AVC
for (i = 0; i < mux->nb_streams; i ++) for (i = 0; i < mux->nb_streams; i ++)
while (av_buffersink_get_frame(sinks[i], frame) >= 0) while (av_buffersink_get_frame(sinks[i], frame) >= 0)
{ {
frame->pict_type = AV_PICTURE_TYPE_NONE;
avcodec_send_frame(encs[i], frame); avcodec_send_frame(encs[i], frame);
av_frame_unref(frame); av_frame_unref(frame);
flush_encoder(mux, sinks[i], encs[i], i); flush_encoder(mux, sinks[i], encs[i], i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment