mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
ffplay: set base in dr1 allocation.
This matches the default non dr1 allocator Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
02cc66dd78
commit
afe4d3bd54
1
ffplay.c
1
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user