On Wed, Dec 18, 2013 at 08:58:32PM -0500, Stephen Hutchinson wrote: > --- a/libavformat/avisynth.c > +++ b/libavformat/avisynth.c > @@ -570,7 +570,10 @@ static int avisynth_read_packet_audio(AVFormatContext > *s, AVPacket *pkt, > > - if (av_new_packet(pkt, pkt->size) < 0) > + /* This ensures scripts that serve both video and audio > + * have audio output */ > + pkt->data = av_malloc(pkt->size); > + if (av_packet_from_data(pkt, pkt->data, pkt->size) < 0) > return AVERROR(ENOMEM);
Every time you malloc without checking for errors a baby whale dies. Yes, there is a reason why whales are on the brink of extinction, but in our corner of the programming world, let's not contribute to the extinction of this wonderful species. If our hearts remain pure, we shall not see whales becoming extinct during our lifetimes. :-) Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
