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?

On Wed, Nov 9, 2011 at 7:04 PM, Yingzhou.zhang <[email protected]> wrote:

> Hey guys~
>
> I am trying to decode video stream with RTP, when I put all the *receive
> packets ->assemble into a whole frame -> decode and display stuff in one
> thread*,everything seems fine with some delay,then
>
> I try to do multi-thread with one thread to receive to receive and
> assemble packets another to decode and play..But I *got
> avcodec_decode_video failed all the time*, with pthread_mutex_lock
>
> 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.......
>
> I am completely clueless, any tips and suggestion would be appreciated !!
>
> Thanks in advance ~
>
> Cheers
> ----------------------------------------
> Best Regards
>
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>


-- 
-
-
-
-
Luke Clemens
http://clemens.bytehammer.com
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to