Anton Khirnov <[email protected]> writes: >> @@ -1720,8 +2826,15 @@ static int dca_decode_frame(AVCodecContext *avctx, >> void *data, >> DCAContext *s = avctx->priv_data; >> int channels, full_channels; >> int core_ss_end; >> + int upsample = 0; >> >> + if (!avpkt->pos) >> + s->frame_index = s->sample_index = 0; > > What are those two fields for? Just debugging?
sample_index and frame_index are for logging (AV_LOG_DEBUG) only. The upsample flag is set when the 48kHz core channels need to be upsampled to 96kHz before they can be added to the 96 kHz xll residual data. Regrds, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
