summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/intelh263dec.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/intelh263dec.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/intelh263dec.c')
-rw-r--r--ffmpeg/libavcodec/intelh263dec.c7
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,
};