mirror of https://github.com/FFmpeg/FFmpeg.git
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. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>pull/284/head
parent
b14761d1f8
commit
23e994ca49
1 changed files with 20 additions and 3 deletions
Loading…
Reference in new issue