Joakim Plate <[email protected]> added the comment: Right, but that is what i'm saying. If the previous packet was emitted at the start of that function, and the given buffer contains yet another packet, it would overwrite the packet written at the start of the function.
But maybe i'm missing some thing that makes sure the function is called with buf_size=0 when there is data to be output from previous packet. If so it would be clearer if it actually bailed out directly after emitting the data from previous packet instead of entering the while(buf_size > 0) code which can find another payload. Anyway, this issue is solved. So should i find some other file that triggers above (if even possible) i'll get back with it. ---------- nosy: +elupus ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2392> ________________________________________________
