diff options
author | phintuka <phintuka> | 2008-07-29 12:56:32 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-07-29 12:56:32 +0000 |
commit | 724c8d5cf148f10e0c1a11d3a7151576e226709a (patch) | |
tree | 7af88e19811db8365f61439ade1d9e0fb20f811d | |
parent | f299ee929d549129f7683b055c66d5b29520491b (diff) | |
download | xineliboutput-724c8d5cf148f10e0c1a11d3a7151576e226709a.tar.gz xineliboutput-724c8d5cf148f10e0c1a11d3a7151576e226709a.tar.bz2 |
Use NAL_AUD define instead of raw number
-rw-r--r-- | tools/h264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h264.c b/tools/h264.c index 84c337a1..8bdb7f6e 100644 --- a/tools/h264.c +++ b/tools/h264.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: h264.c,v 1.3 2008-06-11 15:50:28 phintuka Exp $ + * $Id: h264.c,v 1.4 2008-07-29 12:56:32 phintuka Exp $ * */ @@ -168,7 +168,7 @@ int h264_get_picture_type(const uint8_t *buf, int len) { int i; for (i = 0; i < len-5; i++) { - if (buf[i] == 0 && buf[i + 1] == 0 && buf[i + 2] == 1 && buf[i + 3] == 9) { + if (buf[i] == 0 && buf[i + 1] == 0 && buf[i + 2] == 1 && buf[i + 3] == NAL_AUD) { uint8_t type = (buf[i + 4] >> 5); switch (type) { case 0: case 3: case 5: return I_FRAME; |