]> git.sesse.net Git - ffmpeg/blobdiff - ffprobe.c
ac3dec: add a drc_scale private option
[ffmpeg] / ffprobe.c
index edda454cde79eebe49ec821581dfa99affb0768d..cb4a4c31060b46b1f64a52d1d41e80ed83c5d401 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -291,7 +291,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
         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);
-        } else if (avcodec_open(stream->codec, codec) < 0) {
+        } else if (avcodec_open2(stream->codec, codec, NULL) < 0) {
             fprintf(stderr, "Error while opening codec for input stream %d\n",
                     stream->index);
         }