<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY>
<DIV>
<DIV style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">I am currently trying to read the audio samples from a video file. I <BR>tried the sample code provided in the examples section <BR>decoding_encoding.c and i only changed the <BR>avcodec_find_decoder(AV_CODEC_ID_MP2) to <BR>avcodec_find_decoder(pCodecCtx->codec_id), everything works fine with <BR>this till i reach the avcodec_decode_audio4() where i get a negative <BR>value from this function.<BR>I managed my way through video decoding sucesfully but seem to be <BR>stucked here from a long time. i tried with .mts and .mp4 file and even <BR>.mp3 file but all seem to return a negative value.<BR><BR>Thank you.</DIV></DIV></BODY></HTML>