diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-08-05 10:19:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-08-05 10:19:43 +0000 |
commit | 59c673d5180cd85f367df0badf435f09513a5947 (patch) | |
tree | 3b9e8bf6901570b3a18d6f84a4f41496279e3c7f /libavcodec/utils.c | |
parent | 2864dfd5794a5a9bff612e730179a9026f042a06 (diff) | |
download | ffmpeg-59c673d5180cd85f367df0badf435f09513a5947.tar.gz |
cleanup / fixes
Originally committed as revision 2103 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 47831f2f35..33ff0f4153 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -220,6 +220,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){ InternalBuffer *buf, *last, temp; assert(pic->type==FF_BUFFER_TYPE_INTERNAL); + assert(s->internal_buffer_count); for(i=0; i<s->internal_buffer_count; i++){ //just 3-5 checks so is not worth to optimize buf= &((InternalBuffer*)s->internal_buffer)[i]; |