summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 23:52:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-14 00:08:53 +0200
commit20ec0d2a750a804f50c090cf6e6509db8ff9cadd (patch)
tree8e428081e026e3b0682fdcf9c5ee94874c85b3cb /libavcodec/mpegvideo.c
parentf4d73f0fb55e0b5931c859ddb4d2d1617b60d560 (diff)
mpegvideo: fix motion_val checks
Fixes CID604124 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index ad36ee47d8..6d3cb1aa3c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1780,7 +1780,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
int mb_x;
for (mb_x = 0; mb_x < s->mb_width; mb_x++) {
const int mb_index = mb_x + mb_y * s->mb_stride;
- if ((s->avctx->debug_mv) && pict->motion_val) {
+ if ((s->avctx->debug_mv) && pict->motion_val[0]) {
int type;
for (type = 0; type < 3; type++) {
int direction = 0;
@@ -1859,7 +1859,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
}
}
}
- if ((s->avctx->debug & FF_DEBUG_VIS_QP) && pict->motion_val) {
+ if ((s->avctx->debug & FF_DEBUG_VIS_QP)) {
uint64_t c = (pict->qscale_table[mb_index] * 128 / 31) *
0x0101010101010101ULL;
int y;
@@ -1873,7 +1873,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
}
}
if ((s->avctx->debug & FF_DEBUG_VIS_MB_TYPE) &&
- pict->motion_val) {
+ pict->motion_val[0]) {
int mb_type = pict->mb_type[mb_index];
uint64_t u,v;
int y;