I do receiving/decoding of RTP in separate threads in my application and it works fine. Are you 100% sure that your threads aren't stepping on each other? Are your contexts for the decode thread set up correctly?<br><br>
<div class="gmail_quote">On Wed, Nov 9, 2011 at 7:04 PM, Yingzhou.zhang <span dir="ltr"><<a href="mailto:zhangjsj@gmail.com">zhangjsj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey guys~<div><br></div><div>I am trying to decode video stream with RTP, when I put all the <b>receive packets ->assemble into a whole frame -> decode and display stuff in one thread</b>,everything seems fine with some delay,then </div>

<div><br></div><div>I try to do multi-thread with one thread to receive to receive and assemble packets another to decode and play..But I <b>got avcodec_decode_video failed all the time</b>, with pthread_mutex_lock </div>

<div><br></div><div>assistance I think crucial data struct is safe and I have checked every parameters avcodec_decode_video evey takes, seems normal...No luck with avcodec_decode_video2 too.......</div><div><br></div><div>

I am completely clueless, any tips and suggestion would be appreciated !!</div><div><div><br></div>Thanks in advance ~</div><div><br></div><div>Cheers<br>----------------------------------------<div>Best Regards</div><br>


</div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>-<br>-<br>-<br>-<br>Luke Clemens<br><a href="http://clemens.bytehammer.com">http://clemens.bytehammer.com</a><br>