Hi, On Thu, Aug 11, 2011 at 5:57 AM, Dustin Brody <[email protected]> wrote: > --- > libavcodec/h264.c | 10 ++++++++-- > 1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/h264.c b/libavcodec/h264.c > index 9ab2498..c2229ff 100644 > --- a/libavcodec/h264.c > +++ b/libavcodec/h264.c > @@ -1138,7 +1138,10 @@ static int decode_update_thread_context(AVCodecContext > *dst, const AVCodecContex > memcpy(&h->s + 1, &h1->s + 1, sizeof(H264Context) - > sizeof(MpegEncContext)); //copy all fields after MpegEnc > memset(h->sps_buffers, 0, sizeof(h->sps_buffers)); > memset(h->pps_buffers, 0, sizeof(h->pps_buffers)); > - ff_h264_alloc_tables(h); > + if (ff_h264_alloc_tables(h) < 0) { > + av_log(dst, AV_LOG_ERROR, "Could not allocate memory for > h264\n"); > + return AVERROR(ENOMEM); > + }
Patch OK (although admittedly the msg is kind of lame - but I can't come up with anything better), queued locally. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
