[FFmpeg-devel] [PATCH 2/2] avformat/rtpdec_jpeg: Set width and heigh codec parameters
Marvin Scholz
epirat07 at gmail.com
Fri May 23 02:59:38 EEST 2025
From: Erik Linge <erikli at axis.com>
---
libavformat/rtpdec_jpeg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index 81036247c1..4d9ee0d754 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -233,6 +233,8 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
q = AV_RB8(buf + 5); /* quantization factor (or table id) */
width = AV_RB8(buf + 6); /* frame width in 8 pixel blocks */
height = AV_RB8(buf + 7); /* frame height in 8 pixel blocks */
+ st->codecpar->width = width*8;
+ st->codecpar->height = height*8;
buf += 8;
len -= 8;
--
2.39.5 (Apple Git-154)
More information about the ffmpeg-devel
mailing list