[FFmpeg-cvslog] rtpdec_jpeg: Simplify the calculation of the number of qtables
Martin Storsjö
git at videolan.org
Thu Sep 13 15:29:01 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 11 14:43:10 2012 +0300| [a252649059b7dd1fa05e27bd6a14b5a08436456a] | committer: Martin Storsjö
rtpdec_jpeg: Simplify the calculation of the number of qtables
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a252649059b7dd1fa05e27bd6a14b5a08436456a
---
libavformat/rtpdec_jpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index b1361cd..463bf43 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -303,7 +303,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
* interchange format. */
jpeg->hdr_size = jpeg_create_header(hdr, sizeof(hdr), type, width,
height, qtables,
- qtable_len > 64 ? 2 : 1);
+ qtable_len / 64);
/* Copy JPEG header to frame buffer. */
avio_write(jpeg->frame, hdr, jpeg->hdr_size);
More information about the ffmpeg-cvslog
mailing list