[FFmpeg-devel] [PATCH] dpx: invalid aspect ratio is 0/1, not 0/0.

Nicolas George nicolas.george at normalesup.org
Mon Jul 9 09:23:40 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/dpx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index cbddfa4..6ef2db2 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -114,7 +114,7 @@ static int decode_frame(AVCodecContext *avctx,
                    avctx->sample_aspect_ratio.num,  avctx->sample_aspect_ratio.den,
                   0x10000);
     else
-        avctx->sample_aspect_ratio = (AVRational){ 0, 0 };
+        avctx->sample_aspect_ratio = (AVRational){ 0, 1 };
 
     switch (descriptor) {
         case 51: // RGBA
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list