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.

> 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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to