[Libav-user] Avcodec_decode_video2 clariifcation

krishnaks at iwavesystems.com krishnaks at iwavesystems.com
Sat Jun 23 15:01:33 CEST 2012


Hi,

I am still unable to solve this issue.
Is this issue related to network?
Because most of the time got_picture_ptr will be zero only when packet
arrival rate is not uniform.
i.e Duration between previous packet arrival & current packet arrival is
double(some time trible also) of expected duration.

> Hi,
>
> I am using following API to decode H264 frame.
>
> int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
>                          int *got_picture_ptr,
>                          const AVPacket *avpkt);
> But whenever 3rd parameter got_picture_ptr will be false, after that Whats
> the decode behavior.
> After this, Propagation delay is getting added to My application.
> Only if I am Reinitializing the decoder whenever got_picture_ptr is
> false(i.e. deleting decoder & Initializing the Avcodec,AvcodecContext
> etc..) My application will work without a propagation delay.
>
> Can anyone explain me what is the reason behind this?
>
> If got_picture_ptr is zero/false, how application should handle this so
> that can avoid propagation delay?
>
> Thanks in advance
> KP
>
>



More information about the Libav-user mailing list