summaryrefslogtreecommitdiff
path: root/src/img_encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/img_encoder.cc')
-rw-r--r--src/img_encoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/img_encoder.cc b/src/img_encoder.cc
index 1a464f8..d83a906 100644
--- a/src/img_encoder.cc
+++ b/src/img_encoder.cc
@@ -59,7 +59,7 @@ ImgEncoder::~ImgEncoder()
// FIXME: free: deccodec and dcc
}
-void ImgEncoder::encode(DVFrame *dvframe,
+void ImgEncoder::encode(Frame *dvframe,
char *filename,
int quality)
{
@@ -71,8 +71,8 @@ void ImgEncoder::encode(DVFrame *dvframe,
int got_picture = 1;
int len;
- ptr = (uint8_t *)dvframe->frame;
- len = sizeof(dvframe->frame);
+ ptr = (uint8_t *)dvframe->data;
+ len = dvframe->size;
ret = avcodec_decode_video(dcc, rawframe, &got_picture, ptr, len);