[FFmpeg-devel] [PATCH 5/5] ADTS to AudioSpecificConfig bitstream filter
Alex Converse
alex.converse
Tue Jun 2 20:24:08 CEST 2009
On Sat, May 30, 2009 at 7:32 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, May 29, 2009 at 04:12:08PM -0400, Alex Converse wrote:
[...]
>> + ? ?if (!ctx->first_frame_done) {
>> + ? ? ? ?int ? ? ? ? ? ?pce_size = 0;
>> + ? ? ? ?uint8_t ? ? ? ?pce_data[MAX_PCE_SIZE];
>> + ? ? ? ?if (!hdr.chan_config) {
>> + ? ? ? ? ? ?init_get_bits(&gb, buf, buf_size);
>> + ? ? ? ? ? ?if (get_bits(&gb, 3) != 5) {
>> + ? ? ? ? ? ? ? ?ff_log_missing_feature(avctx, "PCE based channel configuration, where the PCE is not the first syntax element is", 0);
>> + ? ? ? ? ? ? ? ?return -1;
>> + ? ? ? ? ? ?}
>> + ? ? ? ? ? ?init_put_bits(&pb, pce_data, MAX_PCE_SIZE);
>> + ? ? ? ? ? ?pce_size = ff_copy_pce_data(&pb, &gb)/8;
>> + ? ? ? ? ? ?flush_put_bits(&pb);
>
>> + ? ? ? ? ? ?avctx->extradata_size = 2 + pce_size;
>> + ? ? ? ? ? ?buf_size -= get_bits_count(&gb)/8;
>> + ? ? ? ? ? ?buf ? ? ?+= get_bits_count(&gb)/8;
>> + ? ? ? ?} else {
>> + ? ? ? ? ? ?avctx->extradata_size = 2;
>> + ? ? ? ?}
>
> avctx->extradata_size = 2 + pce_size;
> is correct for either side of the branch
>
fixed
[...]
--Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-ADTS-to-AudioSpecificConfig-bitstream-filter.patch
Type: text/x-patch
Size: 5191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090602/e53dc92d/attachment.bin>
More information about the ffmpeg-devel
mailing list