[Libav-user] How to process incomming AVFrame pointer in a decoder ?

ssshukla26 ssshukla26 at gmail.com
Fri Jul 15 16:56:19 CEST 2016


Hi,

I am implementing the custom decoder of qualcomm chipset into ffmpeg, have a
working linux application for the same. Every thing is working fine except
one thing, that is I am unable to fill decoded data into in coming AVFrame
pointer. 

My implementation of decoder has the following function to decode frames,
*int qhw_decode_frame (AVCodecContext *avctx, void *pframe, int *got_frame,
AVPacket *avpkt);*

First of all the do_decode call was asserting with the following error
*Assertion avctx->internal->buffer_frame->buf[0] failed at
libavcodec/utils.c:2772*

So I used *av_frame_get_buffer* function to allocate memory to data buffers,
but still the pipe (as follows) isn't working.

*$ ffmpeg -f h264 -c:v h264_qhw -i no_mans_sky_1080p_10sec.h264 -vcodec
rawvideo -pix_fmt nv12_tiled -s 1920x1080 -r 30 output.yuv -loglevel debug
*

Note: I confirm my decoder is working by *dumping* the first decode frame on
a file, as the decode function is only called once and then it hang up, just
hanp up and do nothing.

Please help am so much stuck, please guyz need some insight on how to
process and fill the incoming AVFrame pointer from do_decode function.




--
View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-How-to-process-incomming-AVFrame-pointer-in-a-decoder-tp4662357.html
Sent from the libav-users mailing list archive at Nabble.com.


More information about the Libav-user mailing list