diff options
author | deva <deva> | 2005-04-14 17:28:21 +0000 |
---|---|---|
committer | deva <deva> | 2005-04-14 17:28:21 +0000 |
commit | d5e1739f5288355869eccd53ab3eb1a4000d1cab (patch) | |
tree | 15f9f20fb8d5c92fbf0b2ef5e34f150ce660168f /src/img_encoder.cc | |
parent | f742dd679138b1e3428b72e8f934fee15ade9ecb (diff) |
Unified the frame types.
Diffstat (limited to 'src/img_encoder.cc')
-rw-r--r-- | src/img_encoder.cc | 6 |
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); |