[FFmpeg-devel] Google Summer of Code participation

Ronald S. Bultje rsbultje
Wed Apr 1 22:56:39 CEST 2009


Hi,

On Wed, Apr 1, 2009 at 4:54 PM, Thilo Borgmann
<thilo.borgmann at googlemail.com> wrote:
> Ok, do you mean just to change the name (and there is no
> avcodec_decode_video() anymore) or to introduce avcodec_decode_video2() next
> to the other one but use avcodec_decode_video2() everywhere?

That last one.

In fact, you can implement it as:

avcodec_decode_video2(pkt) {
AVCodec *codec = ctx->codec;
if codec->decode_video2 != NULL {
  ret = codec->decode_video2(pkt);
else
  ret = codec->decode_video(pkt->data, pkt->size);
}

As I suggested earlier on.

Ronald



More information about the ffmpeg-devel mailing list