172
172
if (s->decode_delta) { /* intraframe */
173
173
if ((ret = ir2_decode_plane(s, avctx->width, avctx->height,
174
s->picture->data[0], s->picture->linesize[0],
174
p->data[0], p->linesize[0],
175
175
ir2_luma_table)) < 0)
178
178
/* swapped U and V */
179
179
if ((ret = ir2_decode_plane(s, avctx->width >> 2, avctx->height >> 2,
180
s->picture->data[2], s->picture->linesize[2],
180
p->data[2], p->linesize[2],
181
181
ir2_luma_table)) < 0)
183
183
if ((ret = ir2_decode_plane(s, avctx->width >> 2, avctx->height >> 2,
184
s->picture->data[1], s->picture->linesize[1],
184
p->data[1], p->linesize[1],
185
185
ir2_luma_table)) < 0)
187
187
} else { /* interframe */
188
188
if ((ret = ir2_decode_plane_inter(s, avctx->width, avctx->height,
189
s->picture->data[0], s->picture->linesize[0],
189
p->data[0], p->linesize[0],
190
190
ir2_luma_table)) < 0)
192
192
/* swapped U and V */
193
193
if ((ret = ir2_decode_plane_inter(s, avctx->width >> 2, avctx->height >> 2,
194
s->picture->data[2], s->picture->linesize[2],
194
p->data[2], p->linesize[2],
195
195
ir2_luma_table)) < 0)
197
197
if ((ret = ir2_decode_plane_inter(s, avctx->width >> 2, avctx->height >> 2,
198
s->picture->data[1], s->picture->linesize[1],
198
p->data[1], p->linesize[1],
199
199
ir2_luma_table)) < 0)
203
if ((ret = av_frame_ref(picture, s->picture)) < 0)
203
if ((ret = av_frame_ref(picture, p)) < 0)