Commit 39353b9c authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: add Opus codec extra data

parent 55b5d9e8
...@@ -738,7 +738,21 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample ) ...@@ -738,7 +738,21 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
} }
break; break;
} }
case ATOM_Opus:
{
MP4_Box_t *p_binary = MP4_BoxGet( p_sample, "dOps" );
if( p_binary && BOXDATA(p_binary) && BOXDATA(p_binary)->i_blob )
{
p_track->fmt.p_extra = malloc( BOXDATA(p_binary)->i_blob );
if( p_track->fmt.p_extra )
{
p_track->fmt.i_extra = BOXDATA(p_binary)->i_blob;
memcpy( p_track->fmt.p_extra, BOXDATA(p_binary)->p_blob,
p_track->fmt.i_extra );
}
}
break;
}
default: default:
msg_Dbg( p_demux, "Unrecognized FourCC %4.4s", (char *)&p_sample->i_type ); msg_Dbg( p_demux, "Unrecognized FourCC %4.4s", (char *)&p_sample->i_type );
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment