mirror of
https://github.com/alexkay/spek.git
synced 2025-06-03 00:51:01 +03:00
Undo the previous commit, we still need lavc >= 52.56.0 for avfft
This commit is contained in:
parent
3eeea1ae47
commit
20ea067403
2
NEWS
2
NEWS
@ -51,6 +51,6 @@ Dependencies
|
||||
|
||||
* GTK+ >= 2.18
|
||||
* FFmpeg libraries:
|
||||
* libavcodec
|
||||
* libavcodec >= 52.56.0 (r22291)
|
||||
* libavformat
|
||||
* libavutil
|
||||
|
@ -24,7 +24,7 @@ AM_PROG_VALAC([0.7.0])
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_INTLTOOL([0.35])
|
||||
|
||||
pkg_modules="gtk+-2.0 >= 2.18.0 libavformat libavcodec libavutil"
|
||||
pkg_modules="gtk+-2.0 >= 2.18.0 libavformat libavcodec >= 52.56.0 libavutil"
|
||||
PKG_CHECK_MODULES(SPEK, [$pkg_modules])
|
||||
AC_SUBST(SPEK_CFLAGS)
|
||||
AC_SUBST(SPEK_LIBS)
|
||||
|
@ -141,14 +141,8 @@ gint spek_audio_read (SpekAudioContext *cx) {
|
||||
for (;;) {
|
||||
while (cx->packet->size > 0) {
|
||||
buffer_size = cx->buffer_size;
|
||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT (52, 23, 0)
|
||||
len = avcodec_decode_audio3 (
|
||||
cx->codec_context, (int16_t *) cx->buffer, &buffer_size, cx->packet);
|
||||
#else
|
||||
len = avcodec_decode_audio2 (
|
||||
cx->codec_context, (int16_t *) cx->buffer, &buffer_size,
|
||||
cx->packet->data, cx->packet->size);
|
||||
#endif
|
||||
if (len < 0) {
|
||||
/* Error, skip the frame. */
|
||||
cx->packet->size = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user