diff options
author | phintuka <phintuka> | 2008-07-29 14:03:26 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-07-29 14:03:26 +0000 |
commit | f9b24952f87b96f53801bfb499a78cdcfe23e87c (patch) | |
tree | 51e64560445111bdb5fb2a46582b1fa9e121df85 | |
parent | d8e45e122e92d3f99d4f75e6041d60046bb649f6 (diff) | |
download | xineliboutput-f9b24952f87b96f53801bfb499a78cdcfe23e87c.tar.gz xineliboutput-f9b24952f87b96f53801bfb499a78cdcfe23e87c.tar.bz2 |
Fixed start code check in pes_get_picture_type
-rw-r--r-- | tools/pes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/pes.c b/tools/pes.c index 5ab9c1ac..b205dabc 100644 --- a/tools/pes.c +++ b/tools/pes.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: pes.c,v 1.5 2008-07-29 14:01:36 phintuka Exp $ + * $Id: pes.c,v 1.6 2008-07-29 14:03:26 phintuka Exp $ * */ @@ -124,12 +124,12 @@ uint8_t pes_get_picture_type(const uint8_t *buf, int len) buf += i; len -= i; - if (!buf[0] && !buf[1] && buf[2]) { + if (buf[0] == 0x00 && buf[1] == 0x00 && buf[2] == 0x01) { if (buf[3] == NAL_AUD) return h264_get_picture_type(buf, len); - else - return mpeg2_get_picture_type(buf, len); + return mpeg2_get_picture_type(buf, len); } + return NO_PICTURE; } |