patch-xbmc_cores_dvdplayer_DVDCodecs_Video_DVDVideoCodecFFmpeg_h 1.4 KB

1234567891011121314151617181920212223242526272829
  1. --- xbmc-16.0-Jarvis.orig/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h 2016-02-20 16:21:19.000000000 +0100
  2. +++ xbmc-16.0-Jarvis/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h 2016-03-19 18:38:18.618025151 +0100
  3. @@ -46,7 +46,7 @@ public:
  4. public:
  5. IHardwareDecoder() {}
  6. virtual ~IHardwareDecoder() {};
  7. - virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces) = 0;
  8. + virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat, unsigned int surfaces) = 0;
  9. virtual int Decode (AVCodecContext* avctx, AVFrame* frame) = 0;
  10. virtual bool GetPicture(AVCodecContext* avctx, AVFrame* frame, DVDVideoPicture* picture) = 0;
  11. virtual int Check (AVCodecContext* avctx) = 0;
  12. @@ -77,7 +77,7 @@ public:
  13. void SetHardware(IHardwareDecoder* hardware);
  14. protected:
  15. - static enum PixelFormat GetFormat(struct AVCodecContext * avctx, const PixelFormat * fmt);
  16. + static enum AVPixelFormat GetFormat(struct AVCodecContext * avctx, const AVPixelFormat * fmt);
  17. int FilterOpen(const std::string& filters, bool scale);
  18. void FilterClose();
  19. @@ -119,7 +119,7 @@ protected:
  20. int m_iLastKeyframe;
  21. double m_dts;
  22. bool m_started;
  23. - std::vector<PixelFormat> m_formats;
  24. + std::vector<AVPixelFormat> m_formats;
  25. double m_decoderPts;
  26. int m_skippedDeint;
  27. bool m_requestSkipDeint;