[Libav-user] Audio decoding error

Ankush wadkes93 at gmail.com
Fri May 9 05:31:11 CEST 2014


I am currently trying to read the audio samples from a video file. I 
tried the sample code provided in the examples section 
decoding_encoding.c and i only changed the 
avcodec_find_decoder(AV_CODEC_ID_MP2) to 
avcodec_find_decoder(pCodecCtx->codec_id), everything works fine with 
this till i reach the avcodec_decode_audio4() where i get a negative 
value from this function.
I managed my way through video decoding sucesfully but seem to be 
stucked here from a long time. i tried with .mts and .mp4 file and even 
.mp3 file but all seem to return a negative value.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140509/790415e6/attachment.html>


More information about the Libav-user mailing list