mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-25 09:23:23 +08:00
build error for old ffmpeg.
avpicture_fill 2nd is not const in some versions.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user