[FFmpeg-devel] [PATCH] avcodec: Fix duration error after seek operation

Michael Niedermayer michaelni at gmx.at
Sat Nov 16 02:33:32 CET 2013

On Fri, Nov 15, 2013 at 08:14:32AM +0000, 王兴超 wrote:
> Hi Michael/Justin,
> I met a "duration set" bug in cook parser when seeking, the first audio packet always dropped as its pts/dts be AV_NOPTS_VALUE.
> After some investigation, the root cause is AVCodecParserContext 's duration was forgot set after duration calculation. The attached
> patch could fix this issue and i verify it with latest commit, pls feel free to let me know if there's potential issue.
> thanks
> --xingchao
> ________________________________________
> From: wangxingchao [wangxingchao at xiaomi.com]
> Sent: Friday, November 15, 2013 4:03 PM
> To: 王兴超
> Subject: [PATCH] avcodec: Fix duration error after seek operation
> After seek, s->duration need recalculation, AVCodecParserContext need be set
> again. Without the fix, the first audio packet would be dropped after
> compute_pkt_fields() as the final pts/dts become invalid.
> Signed-off-by: wangxingchao <wangxingchao at xiaomi.com>

patch applied



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131116/783a865b/attachment.asc>

More information about the ffmpeg-devel mailing list