summaryrefslogtreecommitdiffstats
path: root/tests/checkasm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-04-12 00:06:30 -0300
committerJames Almer <jamrial@gmail.com>2018-04-13 21:19:22 -0300
commit23e994ca496c51f67d764ffa48be715c877883e5 (patch)
treecdd95a010ce50b837f867f142a7338a72162312c /tests/checkasm
parentb14761d1f8372dfe558193b8b754b9f1a858077d (diff)
downloadffmpeg-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
OpenPOWER on IntegriCloud