Re: [Libav-user] Suggest how to propery fill incomming AVFrame pointer in a decoder !

2016-08-19 Thread ssshukla26
What is the difference between *av_frame_get_buffer* and *av_image_alloc* function ? Cause using anyone of 'em, I am getting the same output ! -- View this message in context:

Re: [Libav-user] imgutils.h decode dst buffer going from avpicture_fill to av_image_fill_arrays

2016-08-19 Thread Charles
On 08/19/2016 04:54 AM, ssshukla26 wrote: For example let suppose "decoder->dst_data[0]" has YUV buffer and its alignment is 1. --- //Allocate AVFrame data and linesize

Re: [Libav-user] imgutils.h decode dst buffer going from avpicture_fill to av_image_fill_arrays

2016-08-19 Thread ssshukla26
For example let suppose "decoder->dst_data[0]" has YUV buffer and its alignment is 1. --- //Allocate AVFrame data and linesize av_image_alloc(avframe->data, avframe->linesize,

[Libav-user] AVPacket av_malloc av_packet_unref question

2016-08-19 Thread Charles
I have a piece of code that appears to work, that is to say it does stream packets.. It goes like this: av_packet = (AVPacket *) av_malloc( sizeof( AVPacket ) ); while ( 1 ) /// reading in from file out to mpegts { av_read_frame( av_in_fmt_ctx, m_avpacket ); [...] ret =