[FFmpeg-devel] [PATCH] lavc/lavf: transmit stream_id information for mpegts KLV data packets
Stefano Sabatini
stefasab at gmail.com
Mon Feb 8 19:18:26 CET 2016
On date Friday 2016-02-05 01:15:47 +0100, Marton Balint encoded:
>
> On Thu, 4 Feb 2016, Stefano Sabatini wrote:
>
> >On date Wednesday 2016-02-03 10:18:34 +0100, Stefano Sabatini encoded:
> >[...]
> >>Note: since my purpose is to allow remuxing KLV data, I can change
> >>this to enable stream_id side-data only with data streams (so that no
> >>reference must be changed).
> >>
> >>Since I have no strong opinion on this I'd change in case someone has
> >>a preference.
>
> I have no strong preference either. Unless it is a noticable
> performance hit, I think it is fine to add the stream id to all
> packets.
>
> The mpegts demuxer part seems fine, one thing I may change is that
> in new_pes_packet, you allocate the side data in the beginning of
> the function after assigning pes->buffer to the packet buffer.
>
> Probably it would be better if you could allocate the side data in
> the end of the function, after setting pes->buffer to NULL so the
> allocated buffer will not belong to both the pes->buf and pkt->buf,
> therefore in case of ENOMEM at least we will have a chance of
> freeing it properly.
Sure, good catch, patch updated.
No more comments, or is it fine to push?
--
FFmpeg = Funny and Frenzy Marvellous Puristic Epic God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavc-lavf-transmit-stream_id-information-for-mpegts-.patch
Type: text/x-diff
Size: 31268 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160208/6fb9361f/attachment.patch>
More information about the ffmpeg-devel
mailing list