<br>hi<br>
<br>
am using the below code for decoding the video am facing some problems while<br>
using the below code<br>
what the problem am facing is as am using in the while loop it is iterating<br>
till the value grater than zero, till the last iteration of the loop, am<br>
getting the value of len=-1 while coming out of the loop am getting the non<br>
zero value, can u suggest me why the problem is getting (or is that a<br>
problem or it is a right procedure only )<br>
<br>
 while (avpkt.size > 0) {<br>
<br>
             len = avcodec_decode_video2(c, frame, &gotpicture, &avpkt);<br>
                printf("Value of len =%d \n ",len);<br>
                if (len > 0) {<br>
                 fprintf(stderr, "Error while decoding frame %d, %d\n",<br>
gotpicture,len);<br>
<br>
             }<br>
             if (gotpicture) {<br>
                 printf("Got The Picture  %d\n", gotpicture);<br>
                 }<br>
             avpkt.size -= len;<br>
             avpkt.data += len;<br>
         }<br>
<br>
my other doubt is<br>
if the decoding is sucessful the decoded data is saved in the 2nd parameter<br>
of the function, how check the saved data in that variable<br>
<br>
please help me out on this issue<br>