[FFmpeg-cvslog] avformat/movenc: dont store invalid tapt atom

Michael Niedermayer git at videolan.org
Fri Apr 25 22:06:09 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 25 21:47:25 2014 +0200| [af165acefacd89196c003c24802fa3c494d54d3a] | committer: Michael Niedermayer

avformat/movenc: dont store invalid tapt atom

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

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

 libavformat/movenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 1891076..22b4ca6 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1986,7 +1986,7 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
                 mov_write_tapt_tag(pb, track);
             }
         }
-        if (is_clcp_track(track)) {
+        if (is_clcp_track(track) && st->sample_aspect_ratio.num) {
             mov_write_tapt_tag(pb, track);
         }
     }



More information about the ffmpeg-cvslog mailing list