[FFmpeg-devel] [PATCH] avformat/dca_parser: set actual samplerate

wm4 nfxjfg at googlemail.com
Wed Feb 3 12:45:25 CET 2016


On Wed,  3 Feb 2016 12:41:20 +0100
wm4 <nfxjfg at googlemail.com> wrote:

> Fixes timestamps with raw .dts demuxing.
> ---
>  libavcodec/dca_parser.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/dca_parser.c b/libavcodec/dca_parser.c
> index 70e64a8..337a99d 100644
> --- a/libavcodec/dca_parser.c
> +++ b/libavcodec/dca_parser.c
> @@ -166,6 +166,7 @@ static int dca_parse(AVCodecParserContext *s, AVCodecContext *avctx,
>      /* read the duration and sample rate from the frame header */
>      if (!dca_parse_params(buf, buf_size, &duration, &sample_rate, &pc1->framesize)) {
>          s->duration        = duration;
> +        avctx->sample_rate = sample_rate;
>      } else
>          s->duration = 0;
>  

<nevcairiel> wm4: that patch is wrong

Nevermind this patch.


More information about the ffmpeg-devel mailing list