Commit 18fcdc09 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg4videodec: forward return code in ff_mpeg4_decode_picture_header()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent deccb4d8
...@@ -2502,6 +2502,7 @@ int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) ...@@ -2502,6 +2502,7 @@ int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb)
{ {
MpegEncContext *s = &ctx->m; MpegEncContext *s = &ctx->m;
unsigned startcode, v; unsigned startcode, v;
int ret;
/* search next start code */ /* search next start code */
align_get_bits(gb); align_get_bits(gb);
...@@ -2590,8 +2591,8 @@ int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) ...@@ -2590,8 +2591,8 @@ int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb)
} }
if (startcode >= 0x120 && startcode <= 0x12F) { if (startcode >= 0x120 && startcode <= 0x12F) {
if (decode_vol_header(ctx, gb) < 0) if ((ret = decode_vol_header(ctx, gb)) < 0)
return -1; return ret;
} else if (startcode == USER_DATA_STARTCODE) { } else if (startcode == USER_DATA_STARTCODE) {
decode_user_data(ctx, gb); decode_user_data(ctx, gb);
} else if (startcode == GOP_STARTCODE) { } else if (startcode == GOP_STARTCODE) {
......
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