From d5e1739f5288355869eccd53ab3eb1a4000d1cab Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 14 Apr 2005 17:28:21 +0000 Subject: Unified the frame types. --- src/img_encoder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/img_encoder.cc') 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); -- cgit v1.2.3