Hi all.
I'd like to draw your attention to the function field_end(), located in the
file libavcodec/h264.c

http://git.libav.org/?p=libav.git;a=blob;f=libavcodec/h264.c;h=c3ef3f0110e1c879d32d6cde632df40d623fbe05;hb=master#l2518

Lines 2543 - 2546 contain call to the end_frame function, processing its
return code and writing diagnostic message.

However, the function return code, stored in the variable err, doesn't
depend on this error code.
So, in my application, I'm often getting error messages about "hardware
accelerator failed to decode", and positive result of the call to
avcodec_decode_video2()
As a result, my application draws green rectangles instead of dropping
invalid frames.

Is such behavior by design?
I could patch this by assigning err to the return code of the end_frame().

Will it do the trick?

Thanks 

--
View this message in context: 
http://libav-api.1054858.n5.nabble.com/About-error-processing-during-hardware-assisted-decoding-of-H264-tp5565147p5565147.html
Sent from the libav-api mailing list archive at Nabble.com.
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to