summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-02-02 22:47:35 +0000
committerphintuka <phintuka>2010-02-02 22:47:35 +0000
commit2770202aa0d20f3f18da10602de60f8108b6bf0f (patch)
tree8c1333694337de51580a4eae55638c8e297a994d
parenta8655471e1f3e8c5f3504642fb108932a041a218 (diff)
downloadxineliboutput-2770202aa0d20f3f18da10602de60f8108b6bf0f.tar.gz
xineliboutput-2770202aa0d20f3f18da10602de60f8108b6bf0f.tar.bz2
h264_get_video_size(): Removed NAL AUD scanning, it is done in h264_get_picture_type()
-rw-r--r--tools/h264.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/h264.c b/tools/h264.c
index b6deab92..32004d17 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.8 2010-02-02 22:45:30 phintuka Exp $
+ * $Id: h264.c,v 1.9 2010-02-02 22:47:35 phintuka Exp $
*
*/
@@ -187,14 +187,6 @@ int h264_get_video_size(const uint8_t *buf, int len, video_size_t *size)
{
int i;
- /* H.264 detection, search for NAL AUD */
- while (!IS_NAL_AUD(buf)) {
- if (len < 6)
- return 0;
- buf++;
- len--;
- }
-
/* if I-frame, search for NAL SPS */
if (h264_get_picture_type(buf, len) != I_FRAME)
return 0;