diff --git a/ffmpeg.c b/ffmpeg.c index 0cb9ba1d1b719f2194c9069186592a0ee3283ecc..c9ef42e4e727a3bd19a91976936ce6b85d1a6125 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2141,10 +2141,8 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int } filtered_frame = ist->filtered_frame; *filtered_frame= *decoded_frame; //for me_threshold - if (ost->picref) { - avfilter_fill_frame_from_video_buffer_ref(filtered_frame, ost->picref); - filtered_frame->pts = av_rescale_q(ost->picref->pts, ist_pts_tb, AV_TIME_BASE_Q); - } + avfilter_fill_frame_from_video_buffer_ref(filtered_frame, ost->picref); + filtered_frame->pts = av_rescale_q(ost->picref->pts, ist_pts_tb, AV_TIME_BASE_Q); if (ost->picref->video && !ost->frame_aspect_ratio) ost->st->codec->sample_aspect_ratio = ost->picref->video->sample_aspect_ratio; do_video_out(output_files[ost->file_index].ctx, ost, ist, filtered_frame);