GMail screwed up and didn't send the following to the mailing list.  Forwarding.


---------- Forwarded message ----------
From: Stephen Hutchinson <[email protected]>
Date: Sat, Jan 4, 2014 at 5:05 AM
Subject: Re: [libav-devel] [PATCH] avisynth: Use av_packet_from_data for audio.
To: Anton Khirnov <[email protected]>


On Thu, Dec 19, 2013 at 8:33 AM, Anton Khirnov <[email protected]> wrote:
>
> No, this is not correct.
>
> If I understand the problem properly, then stream_index gets overwritten by
> av_new_packet(). The proper solution is then to set stream_index after calling
> av_new_packet().
>

Over the last couple weeks, I've tried the stream_index route, but I
can't seem to
figure out exactly where/what would need to be changed.



In regard to the aforementioned malloc checking, does that mean something like
this?

pkt->data = av_malloc(pkt->size);
if ((ret = av_packet_from_data(pkt, pkt->data, pkt->size)) < 0) {
    av_packet_unref(pkt);
    return ret;
}
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to