summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-09-09 22:50:44 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-09-09 22:50:44 +0000
commit1df1df0b44a3017574a0639aa6dfe5bd77d9abdc (patch)
tree9657a88a8b83e76dfa8dddba314ad6f8dea5aae7 /libavcodec/ffv1.c
parent83586795a2a8e1fe3fcbecc63eb432835ce3bd73 (diff)
removed warnings
Originally committed as revision 2246 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index a9bdf0c3ef..c8520a4efa 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -865,6 +865,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
if(bytes_read ==0) printf("error at end of AC stream\n");
//printf("pos=%d\n", bytes_read);
init_get_bits(&f->gb, buf + bytes_read, buf_size - bytes_read);
+ } else {
+ bytes_read = 0; /* avoid warning */
}
if(1){