Revision eea04021 libavformat/movenc.c

View differences:

libavformat/movenc.c
1220 1220
            avio_wb32(pb, track->enc->width << 16);
1221 1221
            avio_wb32(pb, track->enc->height << 16);
1222 1222
        } else {
1223
        double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio);
1224
        if(!sample_aspect_ratio || track->height != track->enc->height)
1225
            sample_aspect_ratio = 1;
1226
        avio_wb32(pb, sample_aspect_ratio * track->enc->width*0x10000);
1227
        avio_wb32(pb, track->height*0x10000);
1223
            double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio);
1224
            if(!sample_aspect_ratio || track->height != track->enc->height)
1225
                sample_aspect_ratio = 1;
1226
            avio_wb32(pb, sample_aspect_ratio * track->enc->width*0x10000);
1227
            avio_wb32(pb, track->height*0x10000);
1228 1228
        }
1229 1229
    }
1230 1230
    else {

Also available in: Unified diff