<div><br></div><div class="postsubject" style="margin:0px;padding:0px;font-size:12px;font-weight:bold;color:rgb(41,129,180);font-family:'Lucida Grande',Verdana,Helvetica,Arial,sans-serif"> </div><div class="postbody" style="margin:3px 0px;padding:0px;font-size:12px;line-height:1.4em;font-family:'Lucida Grande',Verdana,Helvetica,Arial,sans-serif">
For the code CODEC_ID_H264<br style="margin:0px;padding:0px"><br style="margin:0px;padding:0px">1) av_read_frame() seems always return a value < 0 at the wrong place.<br style="margin:0px;padding:0px"><br style="margin:0px;padding:0px">
2) decoding_encoding.c always fail to decode the video file due to len < 0, where<br style="margin:0px;padding:0px">len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);<br style="margin:0px;padding:0px">
<br style="margin:0px;padding:0px">Have no idea where I'm wrong.<br style="margin:0px;padding:0px"><br style="margin:0px;padding:0px">The testing file is at <a class="postlink" href="http://www.visionopen.com/questions/emount.mp4" style="margin:0px;padding:0px;color:rgb(66,129,166)">http://www.visionopen.com/questions/emount.mp4</a> .<br style="margin:0px;padding:0px">
<br style="margin:0px;padding:0px"><br style="margin:0px;padding:0px">Cheers<br style="margin:0px;padding:0px">Pei</div><br class="Apple-interchange-newline"><div><br></div>-- <br><div><br></div><div>Pei JIA</div><div><br>
</div><div>Email: <a href="mailto:jp4work@gmail.com" target="_blank">jp4work@gmail.com</a></div><div>cell: +1 604-362-5816</div><div><br></div>Welcome to Vision Open<br><a href="http://www.visionopen.com" target="_blank">http://www.visionopen.com</a><br>