Commit 8b0e66a0 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: flag blocks as corrupted if avpacket tells it is

parent d8b4df3c
......@@ -1035,6 +1035,8 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
p_block->i_pts = av_pkt.pts;
p_block->i_dts = av_pkt.dts;
if( unlikely( av_pkt.flags & AV_PKT_FLAG_CORRUPT ) )
p_block->i_flags |= BLOCK_FLAG_CORRUPTED;
#endif
switch ( p_sys->p_context->coded_frame->pict_type )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment