qtdemux: add support for agsm
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 21 Aug 2009 09:44:43 +0000 (11:44 +0200)
committerWim Taymans <wim@metal.(none)>
Fri, 21 Aug 2009 09:44:43 +0000 (11:44 +0200)
Fixes #592530

gst/qtdemux/qtdemux.c
gst/qtdemux/qtdemux_fourcc.h

index fd230458d0a876a19074d2b9c85c58637ce0f0c6..c96769e765db7e1044b22699d644950de2d930c5 100644 (file)
@@ -4333,6 +4333,15 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
         stream->samples_per_frame = 1 * stream->n_channels;
         break;
       }
+      case FOURCC_agsm:
+      {
+        stream->samples_per_packet = 160;
+        stream->bytes_per_packet = 33;
+        stream->bytes_per_frame = 33 * stream->n_channels;
+        stream->bytes_per_sample = 2;
+        stream->samples_per_frame = 160 * stream->n_channels;
+        break;
+      }
       default:
         break;
     }
index e9f99fde62f293688ec2128d37e82d0d2ac0fe48..cb07abe0aadf17c135379d373e594bbb8151c01b 100644 (file)
@@ -144,6 +144,7 @@ G_BEGIN_DECLS
 #define FOURCC_ctts     GST_MAKE_FOURCC('c','t','t','s')
 #define FOURCC_keyw     GST_MAKE_FOURCC('k','e','y','w')
 #define FOURCC_kywd     GST_MAKE_FOURCC('k','y','w','d')
+#define FOURCC_agsm     GST_MAKE_FOURCC('a','g','s','m')
 
 /* 3gpp asset meta data fourcc */
 #define FOURCC_titl     GST_MAKE_FOURCC('t','i','t','l')