summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-09-19 17:40:26 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commit389f1b0ef3ebdc05d7eee31f3f8598567d3f5165 (patch)
tree199480893d17640cc1ebf246ba257e55996376a9 /demux/demux_lavf.c
parent9a7a6958cac2174e1e9e9d61db6d8e295086aae2 (diff)
downloadmpv-389f1b0ef3ebdc05d7eee31f3f8598567d3f5165.tar.bz2
mpv-389f1b0ef3ebdc05d7eee31f3f8598567d3f5165.tar.xz
packet: fix theoretical UB if called on "empty" packets
In theory, a 0 size allocation could have made it memset() on a NULL pointer (with a non-0 size, which makes it crash in addition to theoretical UB). This should never happen, since even packets with size 0 should have an associated allocation, as FFmpeg currently does. But avoiding this makes the API slightly more orthogonal and less tricky, I guess.
Diffstat (limited to 'demux/demux_lavf.c')
0 files changed, 0 insertions, 0 deletions