[FFmpeg-soc] BFI
Sisir Koppaka
sisir.koppaka at gmail.com
Sat Mar 22 08:32:58 CET 2008
On Sat, Mar 22, 2008 at 11:26 AM, Mike Melanson <mike at multimedia.cx> wrote:
> Sisir Koppaka wrote:
> [...]
> The problem isn't immediately obvious to me (and I seem to be the only
> one on duty on this list this late). Attach the whole file if you
> haven't solved it already so we can get the full context.
>
On removing the assignment operations in the declaration of the typedef
struct, all the errors were gone...now i'm doing those assignments in the
read_header()
>
> > bfi->audiovideo = 1; /* Video to be read next. */
>
> But I can tell you that this is among the worst kind of variable names.
> Something along the lines of "boolean onOrOff = 1"... huh? What does 1
> mean?
>
:) It's a toggle switch, 0 indicates that audio has to be read and 1
indicates that video has to be read. Will change the variable names to more
appropriate ones soon.
Right now, I'm getting a wierd error with the decoder part. In my demuxer,
the read_video() is mostly dummy as of now and the /libavcodec/bfi.c is
mostly dummy as well. But I've registered the decoder and put the
initialization of bfi_decoder as follows:
AVCodec bfi_decoder = {
.name = "bfi",
.type = CODEC_TYPE_VIDEO,
.id = CODEC_ID_BFI,
.priv_data_size = sizeof(BFIContext),
.init = bfi_decode_init,
.close = bfi_decode_close,
.decode = bfi_decode_frame,
};
The error I'm getting is that :
In function `avcodec_register_all':
/libavcodec/allcodecs.c:69: undefined reference to `bfi_decoder'
Does this happen if the decoder is incomplete?
-----------------
Sisir Koppaka
More information about the FFmpeg-soc
mailing list