diff options
author | Andreas Rheinhardt <[email protected]> | 2019-11-27 13:22:08 +0100 |
---|---|---|
committer | James Almer <[email protected]> | 2019-11-28 15:20:37 -0300 |
commit | c36a3df67692113af15f7accb006f02956882817 (patch) | |
tree | 60577fddd354d23ba870680024be550cf97bf952 /libavcodec/h264_parser.c | |
parent | a31f68fb449eaf6f030ce5633435663f154bb34d (diff) |
avformat/avc: Avoid allocation for small SPS/PPS arrays
By using avio_get_dyn_buf() + ffio_free_dyn_buf() instead of
avio_close_dyn_buf() + av_free() one can avoid an allocation + copy for
small extradata. Furthermore, it simplifies freeing.
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/h264_parser.c')
0 files changed, 0 insertions, 0 deletions