1
0
Fork 0

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:
Hendrik Leppkes 2015-09-30 12:39:12 +02:00
parent 249ff8159b
commit 16bba49d54
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 0 additions and 1 deletions

View File

@ -1021,7 +1021,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
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