avformat/rtpdec_jpeg: Set width and heigh codec parameters

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
This commit is contained in:
Erik Linge 2022-10-11 22:10:21 +02:00 committed by Marvin Scholz
parent c917f28c49
commit e8199f95d6

View File

@ -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;