Use AVDISCARD_DEFAULT for 0 where appropriate.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 2 Apr 2010 23:08:23 +0000 (23:08 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 2 Apr 2010 23:08:23 +0000 (23:08 +0000)
Originally committed as revision 22787 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index b746062..37ed165 100644 (file)
--- 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++){
             }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;
                 }
             }
         }
                 }
             }
         }