avcodec/encode: do proper cleanup on failure
authorJames Almer <jamrial@gmail.com>
Tue, 3 Oct 2017 14:49:18 +0000 (11:49 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 3 Oct 2017 17:00:27 +0000 (14:00 -0300)
commit87e625c2633a83f62f155fcca33dab0a6e2bb5e6
tree00b08234036e53228a414f01139ada44054d3e82
parentef973bd98d8ee35dbbdd622b075c50d11c0d67fd
avcodec/encode: do proper cleanup on failure

Fixes the last remaining memleaks introduced by a22c6a4796ca1f2cbee6784262515da876fbec22.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/encode.c