| 134 | } |
| 135 | |
| 136 | static void copy_processed_frame(AVCodecContext *avctx, AVFrame *frame) |
| 137 | { |
| 138 | Hnm4VideoContext *hnm = avctx->priv_data; |
| 139 | uint8_t *src = hnm->processed; |
| 140 | uint8_t *dst = frame->data[0]; |
| 141 | int y; |
| 142 | |
| 143 | for (y = 0; y < hnm->height; y++) { |
| 144 | memcpy(dst, src, hnm->width); |
| 145 | src += hnm->width; |
| 146 | dst += frame->linesize[0]; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | static int decode_interframe_v4(AVCodecContext *avctx, const uint8_t *src, uint32_t size) |
| 151 | { |