[FFmpeg-devel] [libav-devel] [PATCH 4/4] Reset the internal state when aborting key frames header parsing in vp6 decoder.
Laurent Aimar
fenrir at elivagar.org
Sat Sep 24 16:19:25 CEST 2011
On Sat, Sep 24, 2011 at 04:16:41PM +0200, fenrir at elivagar.org wrote:
> From: Laurent Aimar <fenrir at videolan.org>
>
> It prevents leaving the state only half initialized.
> ---
> libavcodec/vp6.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c
> index 6928a91..3cac5dc 100644
> --- a/libavcodec/vp6.c
> +++ b/libavcodec/vp6.c
> @@ -57,7 +57,6 @@ static int vp6_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
>
> s->framep[VP56_FRAME_CURRENT]->key_frame = !(buf[0] & 0x80);
> ff_vp56_init_dequant(s, (buf[0] >> 1) & 0x3F);
> -
> if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
> sub_version = buf[1] >> 3;
> if (sub_version > 8)
I have attached a version without this change.
--
fenrir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Reset-the-internal-state-when-aborting-key-frames-he.patch
Type: text/x-diff
Size: 1072 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110924/5c5dd92f/attachment.bin>
More information about the ffmpeg-devel
mailing list