summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-09-09 22:59:16 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-09-09 22:59:16 +0000
commitb160941221f66f4da3c6ac24ba2398decd13e0e3 (patch)
tree5941a5cc22a81d4e2ae9bf626205549c14afb65b /libavcodec/utils.c
parent09b85c13a3edc52f5909b05a138b62fcf1b25675 (diff)
removed warnings
Originally committed as revision 2248 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index c2705889ba..f441ca2a84 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -222,6 +222,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){
assert(pic->type==FF_BUFFER_TYPE_INTERNAL);
assert(s->internal_buffer_count);
+ buf = NULL; /* avoids warning */
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];
if(buf->data[0] == pic->data[0])