That appears to fix the problem, thanks! Kind of. The unpause still doesn't seem to be working right... Must investigate. But at least its not throwing me error messages any more.
On Tue, Jun 23, 2009 at 2:23 PM, Michael Conrad <[email protected]>wrote: > On Tue, 23 Jun 2009 13:36:07 -0400, Tyler Laing <[email protected]> > wrote: > > I'm still getting weird errors when I unpause: >> > [snip] > [snip] > [snip] > > Most times, when you see a ridiculously huge list of errors like this, it > is because you have passed the wrong data in your packet. For instance, if > you pass an AVPacket full of audio data to a video decoder, or just pass a > buffer full of random data. So, your investigation should start there. > > Just to take a random guess at the problem, are you making a copy of the > AVPacket structure without calling av_dup_packet? Keep in mind that the > demuxer owns the packet data buffer, and the AVPacket is not a real > "object". When you call av_read_frame, it will possibly overwrite the > buffer it passed to you last time. If you call av_dup_packet, it will clone > the data buffer and become owned by that AVPacket (which now *is* a real > object) and will get freed with av_free_packet. > > -- > Michael Conrad > IntelliTree Solutions llc. > 513-552-6362 > [email protected] > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > -- Visit my blog at http://oddco.ca/zeroth/zblog _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
