mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
libav 0.7: Use skip_frame instead of hurry_up
This commit is contained in:
parent
b203f1ea1f
commit
ecf064082f
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2009-2010 Julien BLACHE <jb@jblache.org>
|
* Copyright (C) 2009-2011 Julien BLACHE <jb@jblache.org>
|
||||||
*
|
*
|
||||||
* Adapted from mt-daapd:
|
* Adapted from mt-daapd:
|
||||||
* Copyright (C) 2006-2007 Ron Pedde <ron@pedde.com>
|
* Copyright (C) 2006-2007 Ron Pedde <ron@pedde.com>
|
||||||
@ -279,7 +279,12 @@ transcode_seek(struct transcode_ctx *ctx, int ms)
|
|||||||
|
|
||||||
avcodec_flush_buffers(ctx->acodec);
|
avcodec_flush_buffers(ctx->acodec);
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_MAJOR >= 53
|
||||||
|
ctx->acodec->skip_frame = AVDISCARD_NONREF;
|
||||||
|
#else
|
||||||
ctx->acodec->hurry_up = 1;
|
ctx->acodec->hurry_up = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
@ -305,7 +310,11 @@ transcode_seek(struct transcode_ctx *ctx, int ms)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_MAJOR >= 53
|
||||||
|
ctx->acodec->skip_frame = AVDISCARD_DEFAULT;
|
||||||
|
#else
|
||||||
ctx->acodec->hurry_up = 0;
|
ctx->acodec->hurry_up = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Error while reading frame above */
|
/* Error while reading frame above */
|
||||||
if (flags)
|
if (flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user