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.
This commit is contained in:
parent
249ff8159b
commit
16bba49d54
|
@ -1021,7 +1021,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
case 1: avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; break;
|
case 1: avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; break;
|
||||||
case 2:
|
case 2:
|
||||||
case 3: avctx->chroma_sample_location = AVCHROMA_LOC_TOPLEFT; break;
|
case 3: avctx->chroma_sample_location = AVCHROMA_LOC_TOPLEFT; break;
|
||||||
default: av_assert0(0);
|
|
||||||
}
|
}
|
||||||
} // MPEG-2
|
} // MPEG-2
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue