summaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_xiph.c
diff options
context:
space:
mode:
authorAnton Khirnov <[email protected]>2021-04-08 10:46:54 +0200
committerMichael Niedermayer <[email protected]>2021-04-08 22:40:26 +0200
commitb593abda6c642cb0c3959752dd235c2faf66837f (patch)
treefd73e924aff914e275fdffe44772297288b85c04 /libavformat/rtpdec_xiph.c
parentcaaf4633117f77a545975dac18e85b8fcdbc9ce7 (diff)
lavc/pngdec: always create a copy for APNG_DISPOSE_OP_BACKGROUND
Calling av_frame_make_writable() from decoders is tricky, especially when frame threading is used. It is much simpler and safer to just make a private copy of the frame. This is not expected to have a major performance impact, since APNG_DISPOSE_OP_BACKGROUND is not used often and av_frame_make_writable() would typically make a copy anyway. Found-by: James Almer <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/rtpdec_xiph.c')
0 files changed, 0 insertions, 0 deletions