summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2018-07-26 17:37:34 +0200
committerJan Ekström <jeebjp@gmail.com>2018-10-01 20:20:25 +0300
commit6d61c5f68a5b1faaaf5a38080c690e35bd31858c (patch)
tree605a525d17bcf83bd2519916de66602f573738ae /video
parent9f6147a56f85533d7ba09e529356197136d43b19 (diff)
downloadmpv-6d61c5f68a5b1faaaf5a38080c690e35bd31858c.tar.bz2
mpv-6d61c5f68a5b1faaaf5a38080c690e35bd31858c.tar.xz
encode: fix AVPacket deinitialization logic
Since this function is called with packets on the stack, trying to free them makes no sense. Instead, it should unref (which is what `av_interleaved_write_frame` does anyway, rather than freeing). Also, the calling code tried unreffing the packet a second time, even after it was "freed" by the callee in the failure case - and after ownership was taken over by `av_interleaved_write_frame` in the successful case. Both of these cases were wrong.
Diffstat (limited to 'video')
0 files changed, 0 insertions, 0 deletions