[Libav-user] multithread issue about avcodec_decode_video

Luke Clemens lclemens at gmail.com
Thu Nov 10 18:26:01 CET 2011


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 <zhangjsj at gmail.com> 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
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>


-- 
-
-
-
-
Luke Clemens
http://clemens.bytehammer.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20111110/9fd73363/attachment.html>


More information about the Libav-user mailing list