pianobar: Fix build with ffmpeg 5.0

This commit is contained in:
Tee KOBAYASHI 2022-01-17 17:53:39 +09:00 committed by Leonid Pliushch
parent 9f67787f80
commit e8b654c921
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="pianobar is a free/open-source, console-based client for
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2020.11.28
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/PromyLOPh/pianobar/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f8cdd564e2a12ee0740c54e8bc4028b328e9afb041d9ea40bcb762e08034b9e9
TERMUX_PKG_DEPENDS="libao, ffmpeg, libgcrypt, libcurl, json-c"

View File

@ -0,0 +1,11 @@
--- a/src/player.h
+++ b/src/player.h
@@ -68,7 +68,7 @@
AVFilterGraph *fgraph;
AVFormatContext *fctx;
AVStream *st;
- AVCodecContext *cctx;
+ struct AVCodecContext *cctx;
AVFilterContext *fbufsink, *fabuf;
int streamIdx;
int64_t lastTimestamp;