summaryrefslogtreecommitdiff
path: root/src/mov_encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mov_encoder.cc')
-rw-r--r--src/mov_encoder.cc6
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);