- Segfault fixed when liba52 dynamic library isn't found.

Originally committed as revision 449 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Juanjo
2002-05-06 21:34:50 +00:00
parent bc6caae212
commit fffcb5e841
2 changed files with 4 additions and 2 deletions

View File

@@ -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));