Do not set AVFrame.age.
authorAlexis Ballier <aballier@gentoo.org>
Thu, 1 Mar 2012 15:08:08 +0000 (12:08 -0300)
committerelupus <elupus@xbmc.org>
Sat, 31 Mar 2012 14:28:40 +0000 (16:28 +0200)
It is unused and does not exist anymore in libavcodec 54.

xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp
xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp

index 18fe368..a4b8725 100644 (file)
@@ -223,7 +223,6 @@ int CDecoder::GetBuffer(AVCodecContext *avctx, AVFrame *pic)
   }
 
   pic->type           = FF_BUFFER_TYPE_USER;
-  pic->age            = 1;
   pic->data[0]        = (uint8_t*)wrapper;
   pic->data[1]        = NULL;
   pic->data[2]        = NULL;
index ea1f0bd..539d913 100644 (file)
@@ -1197,14 +1197,12 @@ int CVDPAU::FFGetBuffer(AVCodecContext *avctx, AVFrame *pic)
 
   if(pic->reference)
   {
-    pic->age = pA->ip_age[0];
     pA->ip_age[0]= pA->ip_age[1]+1;
     pA->ip_age[1]= 1;
     pA->b_age++;
   }
   else
   {
-    pic->age = pA->b_age;
     pA->ip_age[0]++;
     pA->ip_age[1]++;
     pA->b_age = 1;