diff --git a/ffmpeg.c b/ffmpeg.c
index b7460628e6e3de96e642e734fcd8841c7f448754..37ed1653f0fc8d798f507399d7cc942edf1f4d47 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2988,7 +2988,7 @@ static void opt_input_file(const char *filename)
             }else{
                 found=1;
                 for(j=0; j<p->nb_stream_indexes; j++){
-                    ic->streams[p->stream_index[j]]->discard= 0;
+                    ic->streams[p->stream_index[j]]->discard= AVDISCARD_DEFAULT;
                 }
             }
         }