changeset 15618:1965072518be

demux high profile H.264 ES
author lorenm
date Thu, 02 Jun 2005 21:16:21 +0000
parents 130dd060f723
children ccf2c61afacd
files libmpdemux/mpeg_hdr.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.c	Thu Jun 02 20:54:03 2005 +0000
+++ b/libmpdemux/mpeg_hdr.c	Thu Jun 02 21:16:21 2005 +0000
@@ -329,6 +329,16 @@
   picture->fps = picture->timeinc_unit = picture->timeinc_resolution = 0;
   n = 24;
   read_golomb(buf, &n);
+  if(buf[0] >= 100){
+    if(read_golomb(buf, &n) == 3)
+      n++;
+    read_golomb(buf, &n);
+    read_golomb(buf, &n);
+    n++;
+    if(getbits(buf, n++, 1)){
+      //FIXME scaling matrix
+    }
+  }
   read_golomb(buf, &n);
   v = read_golomb(buf, &n);
   if(v == 0)