diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2013-01-03 14:25:49 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2013-01-03 14:25:49 +0000 |
| commit | 44fb38949bfce15ec44f53b5cc2e057d48f94563 (patch) | |
| tree | 5b28daa4fa2f100d66d6c07d7c93794641565579 /src/lib/openjp3d/t2.c | |
| parent | ad1532ed57305368a85efcff0a4e6f17782b048d (diff) | |
[trunk] JP3D: Handles errors properly
Diffstat (limited to 'src/lib/openjp3d/t2.c')
| -rw-r--r-- | src/lib/openjp3d/t2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/openjp3d/t2.c b/src/lib/openjp3d/t2.c index 7fd551e5..65d98c13 100644 --- a/src/lib/openjp3d/t2.c +++ b/src/lib/openjp3d/t2.c @@ -479,6 +479,7 @@ int t2_decode_packet(opj_t2_t* t2, unsigned char *src, int len, opj_tcd_tile_t * if (tcp->csty & J3D_CP_CSTY_EPH) { if ((*hd) != 0xff || (*(hd + 1) != 0x92)) { opj_event_msg(t2->cinfo, EVT_ERROR, "Expected EPH marker\n"); + return -999; } else { hd += 2; } |
