summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_parser.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2019-11-27 13:22:08 +0100
committerJames Almer <[email protected]>2019-11-28 15:20:37 -0300
commitc36a3df67692113af15f7accb006f02956882817 (patch)
tree60577fddd354d23ba870680024be550cf97bf952 /libavcodec/h264_parser.c
parenta31f68fb449eaf6f030ce5633435663f154bb34d (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