Index: utils.c =================================================================== RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/utils.c,v retrieving revision 1.77 diff -u -r1.77 utils.c --- utils.c 9 Sep 2003 22:58:39 -0000 1.77 +++ utils.c 10 Sep 2003 08:14:51 -0000 @@ -305,6 +310,9 @@ { int ret; + if(avctx->codec) + return -1; + avctx->codec = codec; avctx->codec_id = codec->id; avctx->frame_number = 0;