Skip to content
Snippets Groups Projects
Commit 23e994ca authored by James Almer's avatar James Almer
Browse files

avformat/utils: use the existing packet reference when parsing complete frames


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: default avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
parent b14761d1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment