[FFmpeg-cvslog] MJPEG encoder to write aspect ratio information
Niobos
git at videolan.org
Thu Apr 28 20:40:09 CEST 2011
ffmpeg | branch: master | Niobos <niobos at dest-unreach.be> | Thu Apr 28 20:23:19 2011 +0200| [f3ce748d3453a490f32a5518f9cf6bef6892a30c] | committer: Michael Niedermayer
MJPEG encoder to write aspect ratio information
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3ce748d3453a490f32a5518f9cf6bef6892a30c
---
libavcodec/mjpegenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 15b588c..db477a0 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);
More information about the ffmpeg-cvslog
mailing list