diff options
author | James Almer <jamrial@gmail.com> | 2018-04-12 00:06:30 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-04-13 21:19:22 -0300 |
commit | 23e994ca496c51f67d764ffa48be715c877883e5 (patch) | |
tree | cdd95a010ce50b837f867f142a7338a72162312c /tests/checkasm | |
parent | b14761d1f8372dfe558193b8b754b9f1a858077d (diff) | |
download | ffmpeg-streaming-23e994ca496c51f67d764ffa48be715c877883e5.zip ffmpeg-streaming-23e994ca496c51f67d764ffa48be715c877883e5.tar.gz |
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: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/checkasm')
0 files changed, 0 insertions, 0 deletions