On 7/22/10, Tomas Härdin <[email protected]> wrote:
> On Thu, 2010-07-22 at 14:57 +0530, Umakant Goyal wrote:
>>
>> Can someone tell me the significance of parameter *got_picture_ptr* of
>> *
>> avcodec_decode_video* function?
>
> It'll be set to one if the decoder actually decoded a frame. Due to
> reordering there might be a delay before you start getting frames. This
> also means you have to flush the decoder when you're at EOF.
>

Do i need to set value for this parameter?
how can i utilize the ouput of this variable?

>> secondly, can i get information regarding number of bytes of decode
>> buffer
>> (AVFrame)?
>
> The decode function takes care of that for you. Just pass it a pointer
> to an AVFrame initialized by avcodec_get_frame_defaults(). To be
> precise, you have to allocate the AVFrame struct (as a stack var would
> be easiest) but lavc takes care of allocating the buffers it points to.
>
> /Tomas
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to