1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

MJPEG encoder to write aspect ratio information

This commit is contained in:
Niobos 2011-04-28 20:23:19 +02:00 committed by Michael Niedermayer
parent a0db7424e4
commit f3ce748d34

View File

@ -156,7 +156,7 @@ static void jpeg_put_comments(MpegEncContext *s)
int size; int size;
uint8_t *ptr; uint8_t *ptr;
if (s->aspect_ratio_info /* && !lossless */) if (s->avctx->sample_aspect_ratio.num /* && !lossless */)
{ {
/* JFIF header */ /* JFIF header */
put_marker(p, APP0); put_marker(p, APP0);