[MPlayer-dev-eng] Patch to display the start time of a media file with -identify

Kevin DeKorte kdekorte at gmail.com
Mon Jun 7 17:28:52 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/06/2010 08:05 AM, Reimar Döffinger wrote:
> On Sun, Jun 06, 2010 at 07:21:53AM -0600, Kevin DeKorte wrote:
>>>> +  if (pts > 0)
>>>> +     mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_START_TIME=%.2lf\n", pts);
>>>
>>> Negative start pts is completely valid.
>>> You have to special-case MP_NOPTS_VALUE instead though.
>>
>> With the example file I am getting MP_NOPTS_VALUE as the return value
>> for ds_get_next_pts. So that doesn't seem to work.
> 
> Fixed. ds_get_packet_pts does not work, not even remotely, it will
> throw away the whole first packet!
> If you had tried a case where it was actually used on the video stream
> it would have been very obvious.
> 

Reimar,

Any possibility of accepting this patch? I believe it addresses all your
concerns.

Kevin



- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkwNEDQACgkQ6w2kMH0L1dG9pgCdG9E0dTDDKohnDwS16epBv8Vi
WaIAoJGkCkVzFeErCG3doqDTYNADL9fY
=MUDj
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: display_start_time5.patch
Type: text/x-diff
Size: 1055 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100607/05156080/attachment.patch>


More information about the MPlayer-dev-eng mailing list