OSDN Git Service

avcodec: Fix duration error after seek operation
authorwangxingchao <wangxingchao@xiaomi.com>
Fri, 15 Nov 2013 07:42:46 +0000 (15:42 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 16 Nov 2013 01:02:51 +0000 (02:02 +0100)
commit68900bf16bb4dda35cf5f2801ce72c15056f1939
treed9fd867ec3f2299a99f0133b3ca7e4a7f06b4d5d
parent8cc59ec881b8706fb3036a2a83f7ededa468dedb
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@xiaomi.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cook_parser.c