Browse code

ffmpeg: remove unneeded ost->filter check

Fixes CID1241508

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/05/15 19:34:20
Showing 1 changed files
... ...
@@ -2886,7 +2886,7 @@ static int transcode_init(void)
2886 2886
                 break;
2887 2887
             case AVMEDIA_TYPE_VIDEO:
2888 2888
                 enc_ctx->time_base = av_inv_q(ost->frame_rate);
2889
-                if (ost->filter && !(enc_ctx->time_base.num && enc_ctx->time_base.den))
2889
+                if (!(enc_ctx->time_base.num && enc_ctx->time_base.den))
2890 2890
                     enc_ctx->time_base = ost->filter->filter->inputs[0]->time_base;
2891 2891
                 if (   av_q2d(enc_ctx->time_base) < 0.001 && video_sync_method != VSYNC_PASSTHROUGH
2892 2892
                    && (video_sync_method == VSYNC_CFR || video_sync_method == VSYNC_VSCFR || (video_sync_method == VSYNC_AUTO && !(oc->oformat->flags & AVFMT_VARIABLE_FPS)))){