[FFmpeg-devel] [PATCH] HE-AAC v1 decoder try 4

Vladimir Pantelic pan
Fri Feb 26 10:20:07 CET 2010


Alex Converse wrote:

>>  C) would still need a way to "update" the sample rate after the 1st decode
>>  as
>>  the demuxer could signal the lower (non-sbr) rate, no?
>
>> From what I understand the current FFplay flow for HE-AAC is like so:
> 1)ffplay opens the demuxer
> 2)demuxer sets the sample rate to the nominal value
> 3)demuxer opens the decoder
> 4)decoder initializes the sample rate to zero
> 5)demuxer checks if it has codec parameters
> 6)demuxer does not have parameters and decodes a frame to get them
> 7)decoder sets the sample rate to the actual value
> 8)ffplay opens the decoder
> 9)decoder initializes the sample rate to zero (same as 3)
> 10)ffplay opens SDL with the current decoder sample rate
> 11)SDL falls back to it's default sample rate (24000 Hz)
>
> Proposal C saves the sample rate from step 7 for step 10

right, I was unaware the codec is already opened by the demuxer,
so the sample-rate is set correctly

patch attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffplay_heaac.patch
Type: text/x-patch
Size: 1113 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100226/a1309b09/attachment.bin>



More information about the ffmpeg-devel mailing list