Commit 45057206 authored by Michael Spanier's avatar Michael Spanier

kvideo: add ffmpeg error redirect for pesky msgs

parent ca918188
Pipeline #22087344 passed with stages
in 4 minutes and 57 seconds
......@@ -22,9 +22,18 @@
#define DEBUG 0
static void my_log_callback(void *ptr, int level, const char *fmt, va_list vargs)
{
//KILL ALL LOGGING
// vprintf(fmt, vargs);
}
KAZE_API
void kvideo_quiet_debug_log () {
av_log_set_level (AV_LOG_QUIET);
av_log_set_callback(my_log_callback);
}
......@@ -410,7 +419,7 @@ KObject* kvideo_frame_to_kimage_decoded (KObject* kobj)
rgbFrame->height = codecCtx->height;
ret = av_image_alloc(rgbFrame->data, rgbFrame->linesize,codecCtx->width,
codecCtx->height,target_format, buffer_size_alignment);
if (ret < 0) {
av_frame_free(&rgbFrame);
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment