diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-26 19:29:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-03-27 01:28:06 +0100 |
commit | b0efaee6c1a07b4e7575bf523542ce846202b6e2 (patch) | |
tree | 1c1e6b7d470044acc04e5d140baed9f87cd84e26 /libavcodec/libxvidff.c | |
parent | 3583eb93410a73cac8ddf291baa405005ff4c405 (diff) | |
download | ffmpeg-b0efaee6c1a07b4e7575bf523542ce846202b6e2.tar.gz |
make xvid less picky about unkown aspect
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r-- | libavcodec/libxvidff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index 9008b848ca..65069d0d87 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -456,8 +456,8 @@ static int xvid_encode_frame(AVCodecContext *avctx, XVID_TYPE_AUTO; /* Pixel aspect ratio setting */ - if (avctx->sample_aspect_ratio.num < 1 || avctx->sample_aspect_ratio.num > 255 || - avctx->sample_aspect_ratio.den < 1 || avctx->sample_aspect_ratio.den > 255) { + if (avctx->sample_aspect_ratio.num < 0 || avctx->sample_aspect_ratio.num > 255 || + avctx->sample_aspect_ratio.den < 0 || avctx->sample_aspect_ratio.den > 255) { av_log(avctx, AV_LOG_ERROR, "Invalid pixel aspect ratio %i/%i\n", avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den); return -1; |