[FFmpeg-cvslog] vp9: move VP9SharedContext back to the top of VP9Context

Hendrik Leppkes git at videolan.org
Tue Sep 19 15:53:54 EEST 2017


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Sep 19 10:45:41 2017 +0200| [b4ecf2b582f34ff898017836b7df865e6ad9ce92] | committer: Hendrik Leppkes

vp9: move VP9SharedContext back to the top of VP9Context

VP9SharedContext needs to be the first member so its properties can be
safely accessed from hardware accelerators, without the need to share
the full VP9Context.

Fixes ticket #6674.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4ecf2b582f34ff898017836b7df865e6ad9ce92
---

 libavcodec/vp9dec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp9dec.h b/libavcodec/vp9dec.h
index 96c0e43cd2..66573edc79 100644
--- a/libavcodec/vp9dec.h
+++ b/libavcodec/vp9dec.h
@@ -89,8 +89,8 @@ typedef struct VP9Block {
 typedef struct VP9TileData VP9TileData;
 
 typedef struct VP9Context {
-    VP9TileData *td;
     VP9SharedContext s;
+    VP9TileData *td;
 
     VP9DSPContext dsp;
     VideoDSPContext vdsp;



More information about the ffmpeg-cvslog mailing list