]> git.sesse.net Git - ffmpeg/blobdiff - avprobe.c
alac: reduce the number of local variables needed in lpc prediction
[ffmpeg] / avprobe.c
index 2464f8623a0ffc53ff8619cc0542d9ca52e0a76b..8e93d05ae91c85334b89dd11b3738957f9c2cbe2 100644 (file)
--- a/avprobe.c
+++ b/avprobe.c
@@ -733,7 +733,10 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
         AVStream *stream = fmt_ctx->streams[i];
         AVCodec *codec;
 
-        if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
+        if (stream->codec->codec_id == CODEC_ID_PROBE) {
+            fprintf(stderr, "Failed to probe codec for input stream %d\n",
+                    stream->index);
+        } else if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
             fprintf(stderr,
                     "Unsupported codec with id %d for input stream %d\n",
                     stream->codec->codec_id, stream->index);