[FFmpeg-devel] [PATCH] ogg: Fix seek to zero and packet pts after read through.

Dale Curtis dalecurtis at chromium.org
Sat May 5 00:42:00 CEST 2012


On Fri, May 4, 2012 at 3:11 PM, Michael Niedermayer <michaelni at gmx.at>wrote:

>
> i dont see a difference between
> seek-test sync1.ogg -frames 20  | head
> and
> seek-test sync1.ogg -frames 20  -seekback 0| head
>
> ogg-ts sync1.ogg
> also shows no errors
>
> so maybe my last few commits fixed that too or iam testing the wrong
> thing.
> Can you confirm if this issue is still reproduceable
>
>
Awesome! Looks fixed for sync1.ogg, however libre.ogg is still messed up
(maybe a bad test case?):

$ libavformat/seek-test /var/www/libre.ogg -frames 10  2>/dev/null | head
-n 10
ret: 0         st: 0 flags:0 dts: 1796.120000 pts: 1796.120000 pos:   6183
size:  3964
ret: 0         st: 1 flags:1 dts: 1796.179592 pts: 1796.179592 pos:  10190
size:    91
ret: 0         st: 0 flags:1 dts: 1796.160000 pts: 1796.160000 pos:  10309
size: 16266
ret: 0         st: 1 flags:1 dts: 1796.179592 pts: 1796.179592 pos:  26666
size:    90
ret: 0         st: 1 flags:1 dts: 1796.202812 pts: 1796.202812 pos:  26784
size:    99
ret: 0         st: 0 flags:0 dts: 1796.200000 pts: 1796.200000 pos:  26911
size:  3649
ret: 0         st: 1 flags:1 dts: 1796.226032 pts: 1796.226032 pos:  30602
size:   104
ret: 0         st: 1 flags:1 dts: 1796.249252 pts: 1796.249252 pos:  30734
size:    85
ret: 0         st: 0 flags:0 dts: 1796.240000 pts: 1796.240000 pos:  30847
size:  3233
ret: 0         st: 1 flags:1 dts: 1796.272472 pts: 1796.272472 pos:  34120
size:    82

$ libavformat/seek-test /var/www/libre.ogg -frames 10 -seekback 0
2>/dev/null | head -n 10
ret: 0         st: 0 flags:1 dts: 1796.160000 pts: 1796.160000 pos:  10309
size: 16266
ret: 0         st: 1 flags:1 dts: 1796.202812 pts: 1796.202812 pos:  26666
size:    90
ret: 0         st: 1 flags:1 dts: 1796.202812 pts: 1796.202812 pos:  26784
size:    99
ret: 0         st: 0 flags:0 dts: 1796.200000 pts: 1796.200000 pos:  26911
size:  3649
ret: 0         st: 1 flags:1 dts: 1796.226032 pts: 1796.226032 pos:  30602
size:   104
ret: 0         st: 1 flags:1 dts: 1796.249252 pts: 1796.249252 pos:  30734
size:    85
ret: 0         st: 0 flags:0 dts: 1796.240000 pts: 1796.240000 pos:  30847
size:  3233
ret: 0         st: 1 flags:1 dts: 1796.272472 pts: 1796.272472 pos:  34120
size:    82
ret: 0         st: 1 flags:1 dts: 1796.295692 pts: 1796.295692 pos:  34230
size:    76
ret: 0         st: 0 flags:0 dts: 1796.280000 pts: 1796.280000 pos:  34334
size:  2979

- dale


More information about the ffmpeg-devel mailing list