build error for old ffmpeg.

avpicture_fill 2nd is not const in some versions.
This commit is contained in:
wang-bin
2014-03-10 19:18:33 +08:00
parent 305c3ceb05
commit c94dbb8e4b
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ void VideoFrame::init()
AVPixelFormat fff = (AVPixelFormat)d->format.pixelFormatFFmpeg();
//int bytes = avpicture_get_size(fff, width(), height());
//d->data.resize(bytes);
avpicture_fill(&picture, (const uint8_t*)d->data.constData(), fff, width(), height());
avpicture_fill(&picture, (uint8_t*)d->data.constData(), fff, width(), height());
setBits(picture.data);
setBytesPerLine(picture.linesize);
}