]> git.sesse.net Git - ffmpeg/blobdiff - ffprobe.c
avcodec/mpeg4videodec: Clear sprite wraping on unsupported cases in VOP decode
[ffmpeg] / ffprobe.c
index dd4358db9d955bb178993e768ae997354b8d419b..f2a3cc7a7327325337c01304870989d9610c73e6 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
 #  ifdef pthread_mutex_lock
 #    undef pthread_mutex_lock
 #  endif
-#  define pthread_mutex_lock(a)
+#  define pthread_mutex_lock(a) do{}while(0)
 #  ifdef pthread_mutex_unlock
 #    undef pthread_mutex_unlock
 #  endif
-#  define pthread_mutex_unlock(a)
+#  define pthread_mutex_unlock(a) do{}while(0)
 #endif
 
 typedef struct InputStream {
@@ -2886,6 +2886,8 @@ static int probe_file(WriterContext *wctx, const char *filename)
         } else {
             selected_streams[i] = 1;
         }
+        if (!selected_streams[i])
+            ifile.fmt_ctx->streams[i]->discard = AVDISCARD_ALL;
     }
 
     if (do_read_frames || do_read_packets) {