diff options
Diffstat (limited to 'ffmpeg/libavcodec/intelh263dec.c')
| -rw-r--r-- | ffmpeg/libavcodec/intelh263dec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ffmpeg/libavcodec/intelh263dec.c b/ffmpeg/libavcodec/intelh263dec.c index ac2695e..5da4202 100644 --- a/ffmpeg/libavcodec/intelh263dec.c +++ b/ffmpeg/libavcodec/intelh263dec.c @@ -111,9 +111,8 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) } /* PEI */ - while (get_bits1(&s->gb) != 0) { - skip_bits(&s->gb, 8); - } + if (skip_1stop_8data_bits(&s->gb) < 0) + return AVERROR_INVALIDDATA; s->f_code = 1; s->y_dc_scale_table= @@ -126,6 +125,7 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) AVCodec ff_h263i_decoder = { .name = "h263i", + .long_name = NULL_IF_CONFIG_SMALL("Intel H.263"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_H263I, .priv_data_size = sizeof(MpegEncContext), @@ -133,6 +133,5 @@ AVCodec ff_h263i_decoder = { .close = ff_h263_decode_end, .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("Intel H.263"), .pix_fmts = ff_pixfmt_list_420, }; |
