avformat/jpegxl_anim_dec: use new animated JPEG XL codec ID

A new codec ID has been added to avcodec for animated JPEG XL, so
we should use that in the animated JPEG XL demuxer.

Reviewed-by: Marth64 <marth64@proxyid.net>
Signed-off-by: Leo Izen <leo.izen@gmail.com>
This commit is contained in:
Leo Izen 2024-12-03 19:57:17 -05:00
parent f3c4082645
commit 07e54f9b5c
Signed by: Traneptora
GPG key ID: 764E48EA48221833
3 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ static int jpegxl_anim_read_header(AVFormatContext *s)
return AVERROR(ENOMEM);
st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
st->codecpar->codec_id = AV_CODEC_ID_JPEGXL;
st->codecpar->codec_id = AV_CODEC_ID_JPEGXL_ANIM;
avpriv_set_pts_info(st, 1, meta.timebase.num, meta.timebase.den);
ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL;

View file

@ -1,6 +1,6 @@
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: jpegxl
#codec_id 0: jpegxl_anim
#dimensions 0: 48x48
#sar 0: 0/1
0, 0, 0, 0, 67898, 0x53b6516b

View file

@ -1,6 +1,6 @@
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: jpegxl
#codec_id 0: jpegxl_anim
#dimensions 0: 128x96
#sar 0: 0/1
0, 0, 0, 0, 43376, 0xb2296182