Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -136,11 +136,11 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, |
| 136 | 136 |
switch(s->bits_per_component) {
|
| 137 | 137 |
case 8: |
| 138 | 138 |
case 16: |
| 139 |
- size = avpicture_layout((AVPicture*)data, avctx->pix_fmt, |
|
| 140 |
- avctx->width, avctx->height, |
|
| 141 |
- buf + HEADER_SIZE, buf_size - HEADER_SIZE); |
|
| 142 |
- if (size < 0) |
|
| 143 |
- return size; |
|
| 139 |
+ size = avpicture_layout((AVPicture*)data, avctx->pix_fmt, |
|
| 140 |
+ avctx->width, avctx->height, |
|
| 141 |
+ buf + HEADER_SIZE, buf_size - HEADER_SIZE); |
|
| 142 |
+ if (size < 0) |
|
| 143 |
+ return size; |
|
| 144 | 144 |
break; |
| 145 | 145 |
case 10: |
| 146 | 146 |
size = avctx->height * avctx->width * 4; |