Browse Source

ensure that data[0] is set to NULL for next frame

to please avcodec_default_get_buffer()

Originally committed as revision 7846 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs 18 years ago
parent
commit
5e5067c73d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vp56.c

+ 1
- 0
libavcodec/vp56.c View File

@@ -609,6 +609,7 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
*picture = *p;
*data_size = sizeof(AVPicture);

s->frames[VP56_FRAME_CURRENT].data[0] = NULL;
return buf_size;
}



Loading…
Cancel
Save