mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
mpegvideo: dont call draw edges on lowres
this crashes otherwise, and can happen from try_decode_frame() in the case of decoding errors Fixes Ticket1602 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e8c4022018
commit
0114c571d4
@ -1354,7 +1354,9 @@ void ff_MPV_frame_end(MpegEncContext *s)
|
|||||||
s->unrestricted_mv &&
|
s->unrestricted_mv &&
|
||||||
s->current_picture.f.reference &&
|
s->current_picture.f.reference &&
|
||||||
!s->intra_only &&
|
!s->intra_only &&
|
||||||
!(s->flags & CODEC_FLAG_EMU_EDGE)) {
|
!(s->flags & CODEC_FLAG_EMU_EDGE) &&
|
||||||
|
!s->avctx->lowres
|
||||||
|
) {
|
||||||
int hshift = av_pix_fmt_descriptors[s->avctx->pix_fmt].log2_chroma_w;
|
int hshift = av_pix_fmt_descriptors[s->avctx->pix_fmt].log2_chroma_w;
|
||||||
int vshift = av_pix_fmt_descriptors[s->avctx->pix_fmt].log2_chroma_h;
|
int vshift = av_pix_fmt_descriptors[s->avctx->pix_fmt].log2_chroma_h;
|
||||||
s->dsp.draw_edges(s->current_picture.f.data[0], s->current_picture.f.linesize[0],
|
s->dsp.draw_edges(s->current_picture.f.data[0], s->current_picture.f.linesize[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user