[vlc-commits] avcodec: flag blocks as corrupted if avpacket tells it is
Ilkka Ollakka
git at videolan.org
Sun Mar 17 16:12:15 CET 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Mar 15 13:33:14 2013 +0200| [8b0e66a06f705d6559ae1813fde2b7a26bf166b1] | committer: Ilkka Ollakka
avcodec: flag blocks as corrupted if avpacket tells it is
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b0e66a06f705d6559ae1813fde2b7a26bf166b1
---
modules/codec/avcodec/encoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 930636e..a9c700b 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -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 )
More information about the vlc-commits
mailing list