Revision 9d9c3e1a libavcodec/dnxhdenc.c

View differences:

libavcodec/dnxhdenc.c
239 239
    buf[5] = ctx->interlaced ? ctx->cur_field+2 : 0x01;
240 240
    buf[6] = 0x80; // crc flag off
241 241
    buf[7] = 0xa0; // reserved
242
    AV_WB16(buf + 0x18, avctx->height); // ALPF
242
    AV_WB16(buf + 0x18, avctx->height>>ctx->interlaced); // ALPF
243 243
    AV_WB16(buf + 0x1a, avctx->width);  // SPL
244
    AV_WB16(buf + 0x1d, avctx->height); // NAL
244
    AV_WB16(buf + 0x1d, avctx->height>>ctx->interlaced); // NAL
245 245

  
246 246
    buf[0x21] = 0x38; // FIXME 8 bit per comp
247
    buf[0x22] = 0x88 + (ctx->frame.interlaced_frame<<2);
247
    buf[0x22] = 0x88 + (ctx->interlaced<<2);
248 248
    AV_WB32(buf + 0x28, ctx->cid); // CID
249 249
    buf[0x2c] = ctx->interlaced ? 0 : 0x80;
250 250

  

Also available in: Unified diff