[vlc-devel] [PATCH 3/6] codec: av_buffer_create() uses the raw buffer data not the high level surface
Steve Lhomme
robux4 at videolabs.io
Thu Oct 20 15:26:10 CEST 2016
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 4ae22d6..a2c71d6 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1135,7 +1135,7 @@ static int lavc_va_GetFrame(struct AVCodecContext *ctx, AVFrame *frame,
if (va->release == NULL)
release = lavc_ReleaseFrame;
- frame->buf[0] = av_buffer_create(AV_FRAME_SURFACE(frame), 0, release, pic, 0);
+ frame->buf[0] = av_buffer_create(AV_FRAME_SURFACE_DATA(frame), 0, release, pic, 0);
if (unlikely(frame->buf[0] == NULL))
{
release(pic);
--
2.8.2
More information about the vlc-devel
mailing list