[mythtv] [PATCH] MPEG2->MPEG2 commercial cut (alpha verson 0.1)
Isaac Richards
ijr at po.cwru.edu
Thu Dec 18 01:09:28 EST 2003
On Friday 12 December 2003 02:35 pm, Geoffrey Hausheer wrote:
> On Fri, 12 Dec 2003 13:02:08 -0600, "Geoffrey Hausheer" said:
> > Sorry the build process is so painful. Until I find a way to work with
> > myths libav* or libav* is resynced with upstream, I can't build against
> > mythtv.
>
> Okay, I at least found the reason for this one.
> on line 725, change:
> ic = av_mallocz(sizeof(AVFormatContext));
> to:
> ic = NULL;
>
> it is a bug in the current libavformat for myth, but it is probably
> better not to preallocate in this case.
(Took a look at this since I was doing the ffmpeg resync)
It's not a bug, it's a feature =) I added stuff to av_open_input_file to test
for a pre-existing AVFormatContext so I can override the default file reader
stuff with the mythtv RingBuffer class functions. Since you're not doing
that, you're right, you don't want to preallocate.
Isaac
More information about the mythtv-dev
mailing list