On Tue, May 12, 2015 at 08:31:39PM +0300, Martin Storsjö wrote:
> On Tue, 12 May 2015, Diego Biurrun wrote:
> >On Tue, May 12, 2015 at 05:55:35PM +0200, Luca Barbato wrote:
> >>--- a/libavcodec/libxvid.c
> >>+++ b/libavcodec/libxvid.c
> >>@@ -276,6 +276,8 @@ static int xvid_strip_vol_header(AVCodecContext *avctx, 
> >>AVPacket *pkt,
> >>         /* We need to store the header, so extract it */
> >>         if (!avctx->extradata) {
> >>             avctx->extradata = av_malloc(vo_len);
> >>+            if (!avctx->extradata)
> >>+                return AVERROR(ENOMEM);
> >
> >This is not done during init, but during encode_frame(), so I think it
> >needs some more postprocessing.
> 
> How so? close will still be called regardless if this succeeded or not.

Yes, scratch my comment.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to