Revision d1d87dfb

View differences:

libavformat/movenc.c
1148 1148
    mov_write_string_tag(pb, "\251wrt", s->author        , 1);
1149 1149
    mov_write_string_tag(pb, "\251alb", s->album         , 1);
1150 1150
    mov_write_day_tag(pb, s->year ,1);
1151
    if(mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT))
1152
        mov_write_string_tag(pb, "\251too", LIBAVFORMAT_IDENT, 1);
1151
    mov_write_string_tag(pb, "\251too", LIBAVFORMAT_IDENT, 1);
1153 1152
    mov_write_string_tag(pb, "\251cmt", s->comment       , 1);
1154 1153
    mov_write_string_tag(pb, "\251gen", s->genre         , 1);
1155 1154
    mov_write_trkn_tag(pb, mov, s);
......
1180 1179
                              AVFormatContext *s)
1181 1180
{
1182 1181
    int i;
1182
    int bitexact = 0;
1183 1183

  
1184
    if (s->title[0]   || s->author[0] || s->album[0] || s->year ||
1185
        s->comment[0] || s->genre[0]  || s->track ||
1186
        (mov->mode == MODE_MOV &&
1187
         (mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT)))) {
1184
    for (i = 0; i < s->nb_streams; i++)
1185
        if (mov->tracks[i].enc->flags & CODEC_FLAG_BITEXACT) {
1186
            bitexact = 1;
1187
            break;
1188
        }
1189

  
1190
    if (!bitexact && (s->title[0] || s->author[0] || s->album[0] || s->year ||
1191
                      s->comment[0] || s->genre[0]  || s->track)) {
1188 1192
        offset_t pos = url_ftell(pb);
1189 1193

  
1190 1194
        put_be32(pb, 0); /* size */
......
1198 1202
            mov_write_string_tag(pb, "\251aut", s->author        , 0);
1199 1203
            mov_write_string_tag(pb, "\251alb", s->album         , 0);
1200 1204
            mov_write_day_tag(pb, s->year, 0);
1201
            if(mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT))
1202
                mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0);
1205
            mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0);
1203 1206
            mov_write_string_tag(pb, "\251des", s->comment       , 0);
1204 1207
            mov_write_string_tag(pb, "\251gen", s->genre         , 0);
1205 1208
        }

Also available in: Unified diff