aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-24 18:40:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-24 18:40:49 +0200
commitafe4d3bd543b00c4d8b530e9812601038fe094c8 (patch)
tree815869861151aff04d9f0d6f7f51dc830f8d67ed
parent02cc66dd78d929690df9f5db5ba6c0c825bdc267 (diff)
downloadffmpeg-afe4d3bd543b00c4d8b530e9812601038fe094c8.tar.gz
ffplay: set base in dr1 allocation.
This matches the default non dr1 allocator Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 337a39066e..b57909b854 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1582,6 +1582,7 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
unsigned hshift = (i == 1 || i == 2) ? av_pix_fmt_descriptors[ref->format].log2_chroma_w : 0;
unsigned vshift = (i == 1 || i == 2) ? av_pix_fmt_descriptors[ref->format].log2_chroma_h : 0;
+ pic->base[i] = ref->data[i];
if (ref->data[i]) {
ref->data[i] += ((edge * pixel_size) >> hshift) + ((edge * ref->linesize[i]) >> vshift);
}