Hi, i am developing an application that decodes a mpeg-ts file that must
drop any frames which may cause video artifacts (for the purpose of machine
vision algorithms).  Currently I am using the log_callback within a mutex
(for multi-threaded decoders) in order to receive the correct error for a
given frame. (example below)

if (level == AV_LOG_FATAL) {

        //print out error

    } else if (level == AV_LOG_ERROR) {

        /** handle bad frame */

            } else {


Since parsing the log to detect error's is not the best way to detect frame
issues, Is there a better way to handle this?  Can I retrieve the error
from a frame returned from avcodec_decode_video2?


Daisuke
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to