Le tridi 23 prairial, an CCXXIII, Timo Rothenpieler a écrit : > +static int offset_r(int fmt)
You can use the info in AVPixFmtDescriptor for these. > + default: > + return 0; av_assert0(!"reached"); for the default case. > + frame->format = convert_format(frame->format); I am not sure this is legal. It would probably be wiser to allocate a new frame. > + outlink->format = convert_format(avctx->inputs[0]->format); This is really not legal. You need to return EAGAIN from query_formats() until the input format is known. Or you can solve both problems at once by requiring alpha on the input format and not doing any format change at all. I find that solution is the best. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel