mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05: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:
|
||||
* 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);
|
||||
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 53
|
||||
ctx->acodec->skip_frame = AVDISCARD_NONREF;
|
||||
#else
|
||||
ctx->acodec->hurry_up = 1;
|
||||
#endif
|
||||
|
||||
flags = 0;
|
||||
while (1)
|
||||
{
|
||||
@ -305,7 +310,11 @@ transcode_seek(struct transcode_ctx *ctx, int ms)
|
||||
break;
|
||||
}
|
||||
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 53
|
||||
ctx->acodec->skip_frame = AVDISCARD_DEFAULT;
|
||||
#else
|
||||
ctx->acodec->hurry_up = 0;
|
||||
#endif
|
||||
|
||||
/* Error while reading frame above */
|
||||
if (flags)
|
||||
|
Loading…
Reference in New Issue
Block a user