summaryrefslogtreecommitdiff
path: root/libavcodec/ivi.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-17 18:51:58 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-17 18:51:58 +0100
commit1117d6f4b122aa4189c27e3568154e029dfdcbe7 (patch)
treea42e3d85e5cbf7eedb3505e8ea9126b7caf2c6d4 /libavcodec/ivi.c
parent98e3153fa3a190df5c0a2173e134f81299606819 (diff)
parent6202e2fede75df92cbc374a3f7d6893d0c5ac721 (diff)
Merge commit '6202e2fede75df92cbc374a3f7d6893d0c5ac721'
* commit '6202e2fede75df92cbc374a3f7d6893d0c5ac721': indeo4: Rework stream analysis report Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/ivi.c')
-rw-r--r--libavcodec/ivi.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c
index e7799003e6..a1eab941d2 100644
--- a/libavcodec/ivi.c
+++ b/libavcodec/ivi.c
@@ -1172,6 +1172,22 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
}
}
+ if (ctx->show_indeo4_info) {
+ if (ctx->is_scalable)
+ av_log(avctx, AV_LOG_DEBUG, "This video uses scalability mode\n");
+ if (ctx->uses_tiling)
+ av_log(avctx, AV_LOG_DEBUG, "This video uses local decoding\n");
+ if (ctx->has_b_frames)
+ av_log(avctx, AV_LOG_DEBUG, "This video contains B-frames\n");
+ if (ctx->has_transp)
+ av_log(avctx, AV_LOG_DEBUG, "Transparency mode is enabled\n");
+ if (ctx->uses_haar)
+ av_log(avctx, AV_LOG_DEBUG, "This video uses Haar transform\n");
+ if (ctx->uses_fullpel)
+ av_log(avctx, AV_LOG_DEBUG, "This video uses fullpel motion vectors\n");
+ ctx->show_indeo4_info = 0;
+ }
+
return buf_size;
}
@@ -1187,23 +1203,6 @@ av_cold int ff_ivi_decode_close(AVCodecContext *avctx)
if (ctx->mb_vlc.cust_tab.table)
ff_free_vlc(&ctx->mb_vlc.cust_tab);
-#if IVI4_STREAM_ANALYSER
- if (ctx->is_indeo4) {
- if (ctx->is_scalable)
- av_log(avctx, AV_LOG_ERROR, "This video uses scalability mode!\n");
- if (ctx->uses_tiling)
- av_log(avctx, AV_LOG_ERROR, "This video uses local decoding!\n");
- if (ctx->has_b_frames)
- av_log(avctx, AV_LOG_ERROR, "This video contains B-frames!\n");
- if (ctx->has_transp)
- av_log(avctx, AV_LOG_ERROR, "Transparency mode is enabled!\n");
- if (ctx->uses_haar)
- av_log(avctx, AV_LOG_ERROR, "This video uses Haar transform!\n");
- if (ctx->uses_fullpel)
- av_log(avctx, AV_LOG_ERROR, "This video uses fullpel motion vectors!\n");
- }
-#endif
-
av_frame_free(&ctx->p_frame);
return 0;