[FFmpeg-devel] [RFC/PATCH] Pass PRIVATE_STREAM_2 MPEG-PS packets to caller

Michael Niedermayer michaelni at gmx.at
Sat Mar 2 20:52:30 CET 2013


On Sat, Mar 02, 2013 at 08:46:05PM +0100, Richard wrote:
> On 02/03/13 13:18, Michael Niedermayer wrote:
> >On Tue, Feb 26, 2013 at 05:45:23PM +0100, Richard wrote:
> >>On 25/02/13 17:23, Richard wrote:
> 
> <snip>
> 
> >>+            s->pts = (int64_t)startpts;
> >>+            s->duration = endpts - startpts;
> >
> >missing validity checks
> 
> Sorry, missed this in the last reply.  What would be an appropriate
> validity check?  Both fields are unsigned 32-bit values.  As far as
> I can tell, the full range is available to both, so I don't know
> what could be checked.
> 
> If you just mean endpts > startpts, then sure, I'll add that.

yes thats what i meant

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130302/a30b654d/attachment.asc>


More information about the ffmpeg-devel mailing list