diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 22:33:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 22:42:30 +0200 |
commit | 0114c571d4c8cc1036850ced924683709390681a (patch) | |
tree | ef7479253d2b4a71f880ec93e5315bfabf73660b | |
parent | e8c402201898b3f5373996256cb75ef1829b90d4 (diff) | |
download | ffmpeg-streaming-0114c571d4c8cc1036850ced924683709390681a.zip ffmpeg-streaming-0114c571d4c8cc1036850ced924683709390681a.tar.gz |
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>
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 22a9ec8..fc05b5f 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1354,7 +1354,9 @@ void ff_MPV_frame_end(MpegEncContext *s) s->unrestricted_mv && s->current_picture.f.reference && !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 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], |