[vlc-commits] packetizer: mpeg4audio: frame size depends of object type

Francois Cartegnie git at videolan.org
Fri Feb 24 22:36:55 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 24 22:34:56 2017 +0100| [00feb1dfd3ee7a029b89ca80ae30c3a6915ed3d1] | committer: Francois Cartegnie

packetizer: mpeg4audio: frame size depends of object type

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00feb1dfd3ee7a029b89ca80ae30c3a6915ed3d1
---

 modules/packetizer/mpeg4audio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/packetizer/mpeg4audio.c b/modules/packetizer/mpeg4audio.c
index e8b09f3..915666bf 100644
--- a/modules/packetizer/mpeg4audio.c
+++ b/modules/packetizer/mpeg4audio.c
@@ -486,6 +486,10 @@ static int Mpeg4GAProgramConfigElement(bs_t *s)
 static int Mpeg4GASpecificConfig(mpeg4_asc_t *p_cfg, bs_t *s)
 {
     p_cfg->i_frame_length = bs_read1(s) ? 960 : 1024;
+    if(p_cfg->i_object_type == 23) /* 14496-3 4.5.1.1 */
+        p_cfg->i_frame_length >>= 1;
+    else if(p_cfg->i_object_type == 3)
+        p_cfg->i_frame_length = 256;
 
     if (bs_read1(s))     // depend on core coder
         bs_skip(s, 14);   // core coder delay



More information about the vlc-commits mailing list