Revision 0a5790d1 libavformat/nutenc.c

View differences:

libavformat/nutenc.c
301 301
    case CODEC_TYPE_VIDEO:
302 302
        put_v(bc, codec->width);
303 303
        put_v(bc, codec->height);
304
        put_v(bc, codec->sample_aspect_ratio.num);
305
        put_v(bc, codec->sample_aspect_ratio.den);
304

  
305
        if(codec->sample_aspect_ratio.num<=0 || codec->sample_aspect_ratio.den<=0){
306
            put_v(bc, 0);
307
            put_v(bc, 0);
308
        }else{
309
            put_v(bc, codec->sample_aspect_ratio.num);
310
            put_v(bc, codec->sample_aspect_ratio.den);
311
        }
306 312
        put_v(bc, 0); /* csp type -- unknown */
307 313
        break;
308 314
    default:

Also available in: Unified diff