Browse Source

MJPEG encoder to write aspect ratio information

tags/n0.8
Niobos Michael Niedermayer 14 years ago
parent
commit
f3ce748d34
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mjpegenc.c

+ 1
- 1
libavcodec/mjpegenc.c View File

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


Loading…
Cancel
Save