diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-14 21:12:51 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-14 21:12:51 +0000 |
commit | 6ba9ed9557d82ffa98ea95955e6a94fe6fe3ddd9 (patch) | |
tree | 64b9cb55f6181a6ea4d3bb96808c448321070543 | |
parent | d3e4783212ad7494fa089353954f2635a5fa036a (diff) | |
download | ffmpeg-6ba9ed9557d82ffa98ea95955e6a94fe6fe3ddd9.tar.gz |
invert mode_mov condition
Originally committed as revision 13773 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/movenc.c | 7 |
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"); |