[FFmpeg-cvslog] avcodec/mpeg12enc: Favor storing DAR instead of SAR

Frederic Turmel git at videolan.org
Fri May 16 18:42:08 CEST 2014


ffmpeg | branch: master | Frederic Turmel <me at fredt.org> | Thu May 15 15:02:16 2014 -0700| [b217e1b057d7125edc487a6c9b9e426770cd4cdc] | committer: Michael Niedermayer

avcodec/mpeg12enc: Favor storing DAR instead of SAR

fixes Ticket 2689

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b217e1b057d7125edc487a6c9b9e426770cd4cdc
---

 libavcodec/mpeg12enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 0b20304..52a0a40 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -264,7 +264,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
 
             error = FFABS(error);
 
-            if (error < best_aspect_error) {
+            if (error <= best_aspect_error) {
                 best_aspect_error    = error;
                 s->aspect_ratio_info = i;
             }



More information about the ffmpeg-cvslog mailing list