[Ffmpeg-devel] Re: [RFC] Improvement for the odd timestampgeneration when parser is in use.

elupus elupus
Wed Mar 21 23:48:01 CET 2007


"elupus" <elupus at ecce.se> wrote in message 
news:etpqk8$l4m$1 at sea.gmane.org...
> Hi again,
>
> Here's next iteration of patch. It changes nothing about how parser works,
> just makes it have a member variable wich gives the bytes after the start 
> of
> packet that gave the timestamps.
>
> It uses packet duration and size to estimate bitrate. This isn't entirely
> right as it aught to be using the duration and size of last packet to do
> this correction, but that isn't easily available. It is correct for cbr
> streams atleast thou.
>
> Hope this fits the bill.
>
> /Joakim


Typically a small type crept into the previous patch. Good that nobody 
looked at it. Offset got calculated from wrong framestart. Here's a 
corrected patch.

/Joakim 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parser4.patch
Type: application/octet-stream
Size: 3376 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070321/51c3eefd/attachment.obj>



More information about the ffmpeg-devel mailing list