Commit 57608d90 authored by Reimar Döffinger's avatar Reimar Döffinger

Simplify: just add header_size directly.

Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent b09c93d7
...@@ -153,9 +153,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -153,9 +153,7 @@ static int decode_frame(AVCodecContext *avctx,
return -1; return -1;
} }
buf+=4; buf += header_size;
if (header_size == 8)
buf+=4;
f->pict_type = AV_PICTURE_TYPE_I; f->pict_type = AV_PICTURE_TYPE_I;
f->key_frame = 1; f->key_frame = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment