On 03/20/2012 05:55 PM, Paul B Mahol wrote: > Version from vqa header does not dictate which sound chunks may > appear in file. > > Signed-off-by: Paul B Mahol <[email protected]> > --- > libavcodec/adpcm.c | 2 +- > libavformat/westwood_vqa.c | 135 +++++++++++++++++++++++-------------------- > 2 files changed, 73 insertions(+), 64 deletions(-) > > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c > index 67601b4..41d0d98 100644 > --- a/libavcodec/adpcm.c > +++ b/libavcodec/adpcm.c [...] > + avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); > + > + switch (chunk_type) { > + case SND0_TAG: > + if (wsvqa->bps == 16) > + st->codec->codec_id = CODEC_ID_PCM_S16LE; > + else > + st->codec->codec_id = CODEC_ID_PCM_U8; > + break; [...] > + switch (chunk_type) { > + case SND0_TAG: > + pkt->duration = pkt->size; > + break;
How is that duration correct for 16-bit or more than 1 channel? -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
