summaryrefslogtreecommitdiff
path: root/modules/daala/decode.c
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2016-01-14 21:55:33 +0100
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2016-01-14 21:55:33 +0100
commit6f222fefee38f14ebd934490d1f7153536ae7916 (patch)
tree429f290b09b02869f5abf8115e3cf31734bd1612 /modules/daala/decode.c
parentfba45710a563c655b56379b86d8577fdd96a302a (diff)
daala: recover after recent api change
Diffstat (limited to 'modules/daala/decode.c')
-rw-r--r--modules/daala/decode.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/daala/decode.c b/modules/daala/decode.c
index a2c264f..e2217c8 100644
--- a/modules/daala/decode.c
+++ b/modules/daala/decode.c
@@ -150,12 +150,18 @@ int daala_decode(struct viddec_state *vds, struct vidframe *frame,
return EPROTO;
}
- r = daala_decode_packet_in(vds->dec, &img, &dp);
+ r = daala_decode_packet_in(vds->dec, &dp);
if (r < 0) {
warning("daala: decode: packet_in error (%d)\n", r);
return EPROTO;
}
+ r = daala_decode_img_out(vds->dec, &img);
+ if (r != 1) {
+ warning("daala: decode: img_out error (%d)\n", r);
+ return EPROTO;
+ }
+
for (i=0; i<3; i++) {
frame->data[i] = img.planes[i].data;
frame->linesize[i] = img.planes[i].ystride;