aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegenc.c
diff options
context:
space:
mode:
authorNiobos <niobos@dest-unreach.be>2011-04-28 20:23:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-28 20:39:49 +0200
commitf3ce748d3453a490f32a5518f9cf6bef6892a30c (patch)
tree9a65272683857155bd931cb3dee1957e083d6d84 /libavcodec/mjpegenc.c
parenta0db7424e48bf33ef3194e0faf3b9805b658b020 (diff)
downloadffmpeg-f3ce748d3453a490f32a5518f9cf6bef6892a30c.tar.gz
MJPEG encoder to write aspect ratio information
Diffstat (limited to 'libavcodec/mjpegenc.c')
-rw-r--r--libavcodec/mjpegenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 15b588c793..db477a0ab6 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -156,7 +156,7 @@ static void jpeg_put_comments(MpegEncContext *s)
int size;
uint8_t *ptr;
- if (s->aspect_ratio_info /* && !lossless */)
+ if (s->avctx->sample_aspect_ratio.num /* && !lossless */)
{
/* JFIF header */
put_marker(p, APP0);