summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-26 19:29:37 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-27 01:28:06 +0100
commitb0efaee6c1a07b4e7575bf523542ce846202b6e2 (patch)
tree1c1e6b7d470044acc04e5d140baed9f87cd84e26
parent3583eb93410a73cac8ddf291baa405005ff4c405 (diff)
downloadffmpeg-streaming-b0efaee6c1a07b4e7575bf523542ce846202b6e2.zip
ffmpeg-streaming-b0efaee6c1a07b4e7575bf523542ce846202b6e2.tar.gz
make xvid less picky about unkown aspect
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/libxvidff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index 9008b84..65069d0 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;
OpenPOWER on IntegriCloud