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:
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
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,
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 =