diff options
author | Erik Linge <erikli@axis.com> | 2022-10-11 22:10:21 +0200 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2025-06-11 19:19:50 +0200 |
commit | e8199f95d68c9620df7e1b9c3ed5c1cb1be9118a (patch) | |
tree | 27918e230709f7387caf1b268d802b5306ff96e9 | |
parent | c917f28c49e9cae9b4e190025841207d754eed61 (diff) | |
download | ffmpeg-e8199f95d68c9620df7e1b9c3ed5c1cb1be9118a.tar.gz |
avformat/rtpdec_jpeg: Set width and heigh codec parameters
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
-rw-r--r-- | libavformat/rtpdec_jpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |