1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00

avcodec/av1dec: don't emit a warning when parsing isobmff style extradata

No OBUs may be present and it's a valid scenario, so only warn when parsing raw
extradata.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-10-05 22:23:51 -03:00
parent 78a16e42bd
commit 6231fa7fb7

View File

@@ -893,7 +893,8 @@ static av_cold int av1_decode_init(AVCodecContext *avctx)
seq = ((CodedBitstreamAV1Context *)(s->cbc->priv_data))->sequence_header;
if (!seq) {
av_log(avctx, AV_LOG_WARNING, "No sequence header available.\n");
if (!(avctx->extradata[0] & 0x80))
av_log(avctx, AV_LOG_WARNING, "No sequence header available in extradata.\n");
goto end;
}