[Libav-user] regarding libavcodec method - av_parser_parse2 usage
sasishiju at gmail.com
Fri Mar 2 12:32:23 CET 2012
I have a multi threaded video application using x264 and ffmpeg. In the
decoding flow, I have a question on av_parser_parse2.
I use it as below.
int len = 0;
Here I get the return value len = in_buf_size. But the avpkt.data is not
getting filled in. It gets zero, so is the avpkt.size
To check if the error is due to the usage of AVPacket, I changed it to
uint8_t* pOutBuf = new uint8_t;
int iOutSize = 100;
Here, av_parser_parse2 changed the '5' returned to all the pOutBuf
locations to zero and the output size varable also got set as 0. I tried a
uint8_t pointer without any memory allocated as well.
Nothing gives me a valid output pointer, but in all cases, the parsing
happens for the entire input variable ( as indicated by the return value of
Could any of you please give me more information on this?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user