diff options
author | Martin Storsjö <martin@martin.st> | 2011-07-14 23:01:29 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-07-14 23:37:18 +0300 |
commit | daca33659d12fd85062bc1798f4eb7ffeb83cc3c (patch) | |
tree | e6ced4a7e3b23d46cbc228ea63733851cc67017c /ffmpeg.c | |
parent | baba2eedacbbaecf55bdb89dbfe32c69799df99f (diff) | |
download | ffmpeg-daca33659d12fd85062bc1798f4eb7ffeb83cc3c.tar.gz |
ffmpeg: Fix the check for experimental codecs
The variable 'codec' was used uninitialized here.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -522,7 +522,7 @@ static void assert_codec_experimental(AVCodecContext *c, int encoder) av_log(NULL, AV_LOG_ERROR, "%s '%s' is experimental and might produce bad " "results.\nAdd '-strict experimental' if you want to use it.\n", codec_string, c->codec->name); - codec = encoder ? avcodec_find_encoder(codec->id) : avcodec_find_decoder(codec->id); + codec = encoder ? avcodec_find_encoder(c->codec->id) : avcodec_find_decoder(c->codec->id); if (!(codec->capabilities & CODEC_CAP_EXPERIMENTAL)) av_log(NULL, AV_LOG_ERROR, "Or use the non experimental %s '%s'.\n", codec_string, codec->name); |