projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74433a
)
i263: skip dummy frames
author
Dirk Ausserhaus
<dausserhaus@gmail.com>
Wed, 18 Jun 2014 08:01:52 +0000
(10:01 +0200)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 19 Jun 2014 11:13:20 +0000
(13:13 +0200)
Intel i263 codec has special 8-byte dummy frames that should not be decoded,
so do not even attempt to decode them and skip them instead.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
libavcodec/intelh263dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/intelh263dec.c
b/libavcodec/intelh263dec.c
index
8a0a381
..
e34da5c
100644
(file)
--- a/
libavcodec/intelh263dec.c
+++ b/
libavcodec/intelh263dec.c
@@
-26,6
+26,10
@@
int ff_intel_h263_decode_picture_header(MpegEncContext *s)
{
int format;
+ if (get_bits_left(&s->gb) == 64) { /* special dummy frames */
+ return FRAME_SKIPPED;
+ }
+
/* picture header */
if (get_bits_long(&s->gb, 22) != 0x20) {
av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n");