diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-24 18:40:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-24 18:40:49 +0200 |
commit | afe4d3bd543b00c4d8b530e9812601038fe094c8 (patch) | |
tree | 815869861151aff04d9f0d6f7f51dc830f8d67ed | |
parent | 02cc66dd78d929690df9f5db5ba6c0c825bdc267 (diff) | |
download | ffmpeg-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |