[MPlayer-dev-eng] [PATCH] ASF: Use play_duration instead of send_duration

Compn tempn at twmi.rr.com
Wed May 23 18:25:31 CEST 2007


On Wed, 23 May 2007 12:39:59 +0800, Zuxy Meng scribed:

>Hi,
>
>Currently the asf's movielength is obtained thru the send time field
>in asf file header, while the correct one to use is play time
>substracted by preroll. Send time should be ignored by a demuxer
>although most encoders will set it to the same value as play time. I
>happened to encounter a clip whose send time isn't properly set,
>leading to incorrect OSD display.
>
>Libavformat demuxed the clip correctly, because although it uses send
>time, libavformat reads the two fields in a reversed order (play time
>appears first in the file header, but libavformat reads it as send
>time).


dont forget to update the changelog when you apply this :)

-compn



More information about the MPlayer-dev-eng mailing list