|
@@ -144,6 +144,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, |
|
|
buf[802] = 2; /* linear colorimetric */ |
|
|
buf[802] = 2; /* linear colorimetric */ |
|
|
buf[803] = s->bits_per_component; |
|
|
buf[803] = s->bits_per_component; |
|
|
write16(buf + 804, s->bits_per_component == 10 ? 1 : 0); /* packing method */ |
|
|
write16(buf + 804, s->bits_per_component == 10 ? 1 : 0); /* packing method */ |
|
|
|
|
|
write32(buf + 808, HEADER_SIZE); /* data offset */ |
|
|
|
|
|
|
|
|
/* Image source information header */ |
|
|
/* Image source information header */ |
|
|
write32(buf + 1628, avctx->sample_aspect_ratio.num); |
|
|
write32(buf + 1628, avctx->sample_aspect_ratio.num); |
|
|