You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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:
@@ -136,7 +136,7 @@ static int jpegxl_anim_read_header(AVFormatContext *s)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
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);
|
avpriv_set_pts_info(st, 1, meta.timebase.num, meta.timebase.den);
|
||||||
ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL;
|
ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL;
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#tb 0: 1/1000
|
#tb 0: 1/1000
|
||||||
#media_type 0: video
|
#media_type 0: video
|
||||||
#codec_id 0: jpegxl
|
#codec_id 0: jpegxl_anim
|
||||||
#dimensions 0: 48x48
|
#dimensions 0: 48x48
|
||||||
#sar 0: 0/1
|
#sar 0: 0/1
|
||||||
0, 0, 0, 0, 67898, 0x53b6516b
|
0, 0, 0, 0, 67898, 0x53b6516b
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#tb 0: 1/1000
|
#tb 0: 1/1000
|
||||||
#media_type 0: video
|
#media_type 0: video
|
||||||
#codec_id 0: jpegxl
|
#codec_id 0: jpegxl_anim
|
||||||
#dimensions 0: 128x96
|
#dimensions 0: 128x96
|
||||||
#sar 0: 0/1
|
#sar 0: 0/1
|
||||||
0, 0, 0, 0, 43376, 0xb2296182
|
0, 0, 0, 0, 43376, 0xb2296182
|
||||||
|
Reference in New Issue
Block a user