Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-09-30 13:39:12 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-04 20:18:08 +0300
commit3dfb4ef8f30589f7817f610c057b892b53ad1c40 (patch)
tree288fbcd7c2e4706b24a1143b3295de74cfe8af3c
parent1fad146a0527e9f0abaf250bd6a8c5b2bbe80bea (diff)
mpeg12dec: don't assert on unknown chroma format
The chroma format can be still unset in postinit when a badly cut stream starts with a slice instead of a sequence header. This is a common occurance when feeding avcodec from a Live TV stream.
-rw-r--r--libavcodec/mpeg12dec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index f99b9cb5e9..5920fcb7cd 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1345,7 +1345,6 @@ static int mpeg_decode_postinit(AVCodecContext *avctx)
case 1: avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; break;
case 2:
case 3: avctx->chroma_sample_location = AVCHROMA_LOC_TOPLEFT; break;
- default: av_assert0(0);
}
} // MPEG-2