<div dir="ltr">Hi,<br><br>I need to plot wave form of audio as explained here <a href="http://stackoverflow.com/questions/16509906/ffmpeg-can-i-draw-an-audio-channel-as-an-image" target="_blank">http://stackoverflow.com/questions/16509906/ffmpeg-can-i-draw-an-audio-channel-as-an-image</a>,
 I found that some command line option for plotting to image, but my 
requirement is do from c++ code and draw live waveform on UI. I am able 
to decode the audio data successfully, but no idea how the data is 
stored in `AVFrame` `extended_data` pointer. The audio can be either 
stereo or mono. <br><br>    AVFrame *frame=av_frame_alloc();<br>    while(av_read_frame(container,&packet)>=0)<br>     {<br>   <br>        int len=avcodec_decode_audio4(ctx,frame,&frameFinished,&packet);<br>        frame->extended_data //how data stored inside the pointer <br>        ........................<br>    }</div>