mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
h264: drop tests whether the codec id is AV_CODEC_ID_H264
Those are unused remnants of the old SVQ3 code.
This commit is contained in:
parent
8281cd5cb8
commit
bc7f426851
@ -2111,7 +2111,6 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
|
|||||||
sl->deblocking_filter = 0;
|
sl->deblocking_filter = 0;
|
||||||
|
|
||||||
sl->is_complex = FRAME_MBAFF(h) || h->picture_structure != PICT_FRAME ||
|
sl->is_complex = FRAME_MBAFF(h) || h->picture_structure != PICT_FRAME ||
|
||||||
avctx->codec_id != AV_CODEC_ID_H264 ||
|
|
||||||
(CONFIG_GRAY && (h->flags & AV_CODEC_FLAG_GRAY));
|
(CONFIG_GRAY && (h->flags & AV_CODEC_FLAG_GRAY));
|
||||||
|
|
||||||
if (h->ps.pps->cabac) {
|
if (h->ps.pps->cabac) {
|
||||||
|
@ -371,11 +371,9 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx)
|
|||||||
return AVERROR_UNKNOWN;
|
return AVERROR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avctx->codec_id == AV_CODEC_ID_H264) {
|
|
||||||
if (avctx->ticks_per_frame == 1)
|
if (avctx->ticks_per_frame == 1)
|
||||||
h->avctx->framerate.num *= 2;
|
h->avctx->framerate.num *= 2;
|
||||||
avctx->ticks_per_frame = 2;
|
avctx->ticks_per_frame = 2;
|
||||||
}
|
|
||||||
|
|
||||||
if (avctx->extradata_size > 0 && avctx->extradata) {
|
if (avctx->extradata_size > 0 && avctx->extradata) {
|
||||||
ret = ff_h264_decode_extradata(avctx->extradata, avctx->extradata_size,
|
ret = ff_h264_decode_extradata(avctx->extradata, avctx->extradata_size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user