vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Apr 12 14:14:28 2017 +0200| [db13accd0331902c55b3c2fd0fa74574cd4490ce] | committer: Francois Cartegnie
codec: avcodec: drop corrupted pics on seek > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db13accd0331902c55b3c2fd0fa74574cd4490ce --- modules/codec/avcodec/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c index 4041df0f34..c4dba69209 100644 --- a/modules/codec/avcodec/video.c +++ b/modules/codec/avcodec/video.c @@ -945,7 +945,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block, bool *error update_late_frame_count( p_dec, p_block, current_time, i_pts); - if( !b_need_output_picture || ( !p_sys->p_va && !frame->linesize[0] ) ) + if( !b_need_output_picture || ( !p_sys->p_va && !frame->linesize[0] ) || + ( p_dec->b_frame_drop_allowed && (frame->flags & AV_FRAME_FLAG_CORRUPT) ) ) { av_frame_free(&frame); continue; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
