aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-14 21:12:51 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-14 21:12:51 +0000
commit6ba9ed9557d82ffa98ea95955e6a94fe6fe3ddd9 (patch)
tree64b9cb55f6181a6ea4d3bb96808c448321070543
parentd3e4783212ad7494fa089353954f2635a5fa036a (diff)
downloadffmpeg-6ba9ed9557d82ffa98ea95955e6a94fe6fe3ddd9.tar.gz
invert mode_mov condition
Originally committed as revision 13773 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/movenc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index a99846d754..9a5c62b49d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1407,13 +1407,14 @@ static int mov_write_ftyp_tag(ByteIOContext *pb, AVFormatContext *s)
put_be32(pb, 0x200);
- if(mov->mode != MODE_MOV){
+ if(mov->mode == MODE_MOV)
+ put_tag(pb, "qt ");
+ else{
put_tag(pb, "isom");
put_tag(pb, "iso2");
if(has_h264)
put_tag(pb, "avc1");
- }else
- put_tag(pb, "qt ");
+ }
if (mov->mode == MODE_3GP)
put_tag(pb, has_h264 ? "3gp6":"3gp4");