diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-06-07 03:14:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-07 03:17:42 +0200 |
commit | 3a1aaf7b21c7bde9f4c3d5342baa64d3e940d05f (patch) | |
tree | a71ddec301ea25febc52aaf50e86a796c1cda3de | |
parent | a39bd458a0df295df59242a8e18e1e5313bd3318 (diff) | |
download | ffmpeg-3a1aaf7b21c7bde9f4c3d5342baa64d3e940d05f.tar.gz |
ffplay: Fix -vismv
Fixes Ticket164
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffplay.c | 2 | ||||
-rw-r--r-- | libavcodec/mpegvideo.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -1622,7 +1622,7 @@ static int input_request_frame(AVFilterLink *link) if (ret < 0) return -1; - if(priv->use_dr1) { + if(priv->use_dr1 && priv->frame->opaque) { picref = avfilter_ref_buffer(priv->frame->opaque, ~0); } else { picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, link->w, link->h); diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index c599d1df3b..9397c657ad 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1410,6 +1410,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){ pict->data[i]= s->visualization_buffer[i]; } pict->type= FF_BUFFER_TYPE_COPY; + pict->opaque= NULL; ptr= pict->data[0]; block_height = 16>>v_chroma_shift; |