summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-05-06 21:34:50 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-05-06 21:34:50 +0000
commitfffcb5e8412c8d1304b07eee7ac2d79cf280a1f4 (patch)
tree872720c423f3e7955e54106f5bcaf0f1f1bd0a57 /ffmpeg.c
parentbc6caae212b8a5be9e78625b77ef8cc270b4a443 (diff)
downloadffmpeg-streaming-fffcb5e8412c8d1304b07eee7ac2d79cf280a1f4.zip
ffmpeg-streaming-fffcb5e8412c8d1304b07eee7ac2d79cf280a1f4.tar.gz
- Segfault fixed when liba52 dynamic library isn't found.
Originally committed as revision 449 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7d5a66f..6df63d0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1490,7 +1490,9 @@ int find_codec_parameters(AVFormatContext *ic)
ret = -1;
goto the_end;
}
- avcodec_open(&st->codec, codec);
+ ret = avcodec_open(&st->codec, codec);
+ if (ret < 0)
+ goto the_end;
}
}
pktl = av_mallocz(sizeof(AVPacketList));
OpenPOWER on IntegriCloud