From be7ac511a6b4dd9883c0a6dd8323b04f651193f4 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sat, 8 Jul 2023 04:44:17 +0800 Subject: [PATCH] avformat/mov: avss box should be AV_CODEC_ID_CAVS I cannot find the spec, but according to the original commit d4fdba0df71, it's CAVS. e571305a714 changed it to AVS by accident. Ten years on, nothing happened. We still have the sample [1], however, since there is no cavs_mp4tofoobar bsf, the cavs decoder doesn't work. I don't know if there is any use case. [1] https://samples.ffmpeg.org/AVS/AVSFileFormat/AVSFileFormat.mp4 Signed-off-by: Zhao Zhili --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 444aca5235..ac19b3157a 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1911,7 +1911,7 @@ static int mov_read_alac(MOVContext *c, AVIOContext *pb, MOVAtom atom) static int mov_read_avss(MOVContext *c, AVIOContext *pb, MOVAtom atom) { - return mov_read_extradata(c, pb, atom, AV_CODEC_ID_AVS); + return mov_read_extradata(c, pb, atom, AV_CODEC_ID_CAVS); } static int mov_read_jp2h(MOVContext *c, AVIOContext *pb, MOVAtom atom)