[FFmpeg-soc] [soc]: r2021 - in eac3: ac3dec.h ac3dec_data.c ac3dec_data.h eac3dec.c

Bartlomiej Wolowiec bartek.wolowiec at gmail.com
Thu Mar 20 19:38:06 CET 2008


On wtorek, 18 marca 2008, Michael Niedermayer wrote:
> The (E)AC-3 AVParser should split the (E)AC-3 stream so that the chunks of
> data send to the decoder (ac3_decode_frame) are complete and contain all
> channels.
> So ac3_decode_frame() would receive as input several "ac3 frames" if some
> channels are stored in future frames.

Hi,                                                                                                
Recently I had some free time, so I've tried to work on the parser. I 
encountered one problem: ff_aac_ac3_parse function in aac_ac3_parser.c needs 
to know stream_type. As an interface to read data about the stream it uses 
sync pointer from AACAC3ParseContext, but this function returns only few 
values from the stream. Due to this, I have a question: how  should  I get 
stream_type? I have three ideas:
- add argument to sync,  AAC parser will need some changes then,
- change sync, so that it won't use long list of arguments but a new defined 
structure (in the future there will be need to get substream_id...), or
- read necessary bits directly from aac3_ac3_parse

Maybe you have different ideas?

-- 
Bartlomiej Wolowiec



More information about the FFmpeg-soc mailing list