diff options
author | James Almer <[email protected]> | 2018-04-12 00:06:30 -0300 |
---|---|---|
committer | James Almer <[email protected]> | 2018-04-13 21:19:22 -0300 |
commit | 23e994ca496c51f67d764ffa48be715c877883e5 (patch) | |
tree | cdd95a010ce50b837f867f142a7338a72162312c /libavutil/tests/cpu_init.c | |
parent | b14761d1f8372dfe558193b8b754b9f1a858077d (diff) |
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 <[email protected]>
Signed-off-by: James Almer <[email protected]>
Diffstat (limited to 'libavutil/tests/cpu_init.c')
0 files changed, 0 insertions, 0 deletions