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

Kevin DeKorte kdekorte at gmail.com
Sun Jun 6 18:51:55 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,

How about the attached patch?

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/

iEYEARECAAYFAkwL0isACgkQ6w2kMH0L1dFRlwCeOL5IYNh4SItq4Ha2SZpew7VR
km4AnRno+2Ia65WP/c+jBgPcwIUxalvn
=2gfJ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: display_start_time4.patch
Type: text/x-diff
Size: 970 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100606/aaa15c84/attachment.patch>


More information about the MPlayer-dev-eng mailing list