On 4/13/2018 3:59 PM, Michael Niedermayer wrote: > On Thu, Apr 12, 2018 at 03:34:29PM -0300, James Almer wrote: >> If the parser returns full frames, then the output pointer retured by >> av_parser_parse2() is guaranteed to point to data contained in the >> input packet's buffer. >> >> Create a new reference to said buffer in that case, to avoid >> unnecessary data copy when queueing the packet later in the function. >> >> Signed-off-by: James Almer <jamr...@gmail.com> >> --- >> libavformat/utils.c | 23 ++++++++++++++++++++--- >> 1 file changed, 20 insertions(+), 3 deletions(-) > > LGTM > > thx
Pushed. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel