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/mov_encoder.cc | |
parent | f742dd679138b1e3428b72e8f934fee15ade9ecb (diff) |
Unified the frame types.
Diffstat (limited to 'src/mov_encoder.cc')
-rw-r--r-- | src/mov_encoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mov_encoder.cc b/src/mov_encoder.cc index ece1cff..edfafb7 100644 --- a/src/mov_encoder.cc +++ b/src/mov_encoder.cc @@ -166,7 +166,7 @@ MovEncoder::~MovEncoder() url_fclose(&efc->pb); } -void MovEncoder::encode(DVFrame *dvframe) +void MovEncoder::encode(Frame *dvframe) { int ret; AVFrame *rawframe = avcodec_alloc_frame();ALLOC(dcc, "mov_encoder, rawframe"); @@ -176,8 +176,8 @@ void MovEncoder::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,//&dfc->streams[0]->codec, rawframe, &got_picture, ptr, len); |