]> git.sesse.net Git - ffmpeg/commit
avformat/mpegenc: Avoid adding invalid packet to queue
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 15 Feb 2021 02:44:52 +0000 (03:44 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Feb 2021 06:45:48 +0000 (07:45 +0100)
commit4294f64d578e14b3f65a6a2cd064461cb74bb122
tree7d0000f25cf6d7ab84d5e37699d7a0bbc393bad1
parent54987a37daccbeec28d3f2ec58ff4d5656acd9b1
avformat/mpegenc: Avoid adding invalid packet to queue

Do this by moving the check before the allocation.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/mpegenc.c