On 20/10/15 16:23, wm4 wrote:
> Again, are you sure these packers are unreffed/reset before calling
> av_packet_ref() on them?
> 

yes, I doublechecked.

the one in mux.c has

     this_pktl      = av_mallocz(sizeof(AVPacketList));

just a line above so it is safe.

> Seems like it might be fine for matroskaenc, though it uses
> "mkv->cur_audio_pkt.size > 0" as a check whether the packet is set
> (would break with 0-sized packets).

matroskaenc starts with a initialized packet and once it is used it is
always unreffed.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to