diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-01-21 15:29:28 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-01-21 15:31:02 +0000 |
commit | 7d8891593c2833cdb6612828700efc2931377f76 (patch) | |
tree | 90a1653231c41d9a9ab4ffff64e5518256a2c46f /libavcodec/dirac_parser.c | |
parent | 8c9103c4aff40931aa932cb274f27af273d2c065 (diff) | |
download | ffmpeg-7d8891593c2833cdb6612828700efc2931377f76.tar.gz |
dirac_parser: add exceptions for Dirac inter parse codes
Forgotten from previous commit.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/dirac_parser.c')
-rw-r--r-- | libavcodec/dirac_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dirac_parser.c b/libavcodec/dirac_parser.c index a8aa664ea9..451c9d4e0a 100644 --- a/libavcodec/dirac_parser.c +++ b/libavcodec/dirac_parser.c @@ -103,7 +103,7 @@ static int unpack_parse_unit(DiracParseUnit *pu, DiracParseContext *pc, int i; int8_t *start; static const uint8_t valid_pu_types[] = { - 0x00, 0x10, 0x20, 0x30, 0x08, 0x48, 0xC8, 0xE8 + 0x00, 0x10, 0x20, 0x30, 0x08, 0x48, 0xC8, 0xE8, 0x0A, 0x0C, 0x0D, 0x0E }; if (offset < 0 || pc->index - 13 < offset) @@ -116,10 +116,10 @@ static int unpack_parse_unit(DiracParseUnit *pu, DiracParseContext *pc, pu->prev_pu_offset = AV_RB32(start + 9); /* Check for valid parse code */ - for (i = 0; i < 8; i++) + for (i = 0; i < 12; i++) if (valid_pu_types[i] == pu->pu_type) break; - if (i == 8) + if (i == 12) return 0; if (pu->pu_type == 0x10 && pu->next_pu_offset == 0) |