Commit a2ad86f9 authored by michaelni's avatar michaelni

detect avcodec_open() on an already opened AVCodecContext


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2251 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c1f57573
......@@ -305,6 +305,9 @@ int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
int ret;
if(avctx->codec)
return -1;
avctx->codec = codec;
avctx->codec_id = codec->id;
avctx->frame_number = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment