[FFmpeg-devel] [PATCH] avformat/dca_parser: set actual samplerate
Hendrik Leppkes
h.leppkes at gmail.com
Wed Feb 3 12:45:39 CET 2016
On Wed, Feb 3, 2016 at 12:41 PM, 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;
>
> --
> 2.7.0
>
This is incorrect.
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=00ae5b401b24592a9f7019baada5b349152ee2fc
Alternative patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dca_parser-ensure-frame-duration-matches-the-actual-.patch
Type: application/octet-stream
Size: 1112 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160203/189df594/attachment.obj>
More information about the ffmpeg-devel
mailing list