mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
Fix compilation with ffmpeg 1.0
AVPROBE_SCORE_RETRY was too new, and doesn't even exist in Libav. Go back to using the value explicitly.
This commit is contained in:
parent
c3f8c9a58e
commit
61aef3fff9
@ -40,10 +40,6 @@
|
||||
#define avcodec_free_frame av_freep
|
||||
#endif
|
||||
|
||||
#if LIBAVFORMAT_VERSION_MICRO < 100
|
||||
#define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
|
||||
#endif
|
||||
|
||||
// For Libav 0.9
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(54, 2, 100)
|
||||
#define AV_DISPOSITION_ATTACHED_PIC 0x0400
|
||||
|
@ -239,10 +239,10 @@ static int lavf_check_file(demuxer_t *demuxer)
|
||||
goto success;
|
||||
}
|
||||
|
||||
// AVPROBE_SCORE_RETRY + 1 is the "recommended" limit. Below that, the user
|
||||
// AVPROBE_SCORE_MAX/4 + 1 is the "recommended" limit. Below that, the user
|
||||
// is supposed to retry with larger probe sizes until a higher value is
|
||||
// reached.
|
||||
int min_probe = AVPROBE_SCORE_RETRY + 1;
|
||||
int min_probe = AVPROBE_SCORE_MAX/4 + 1;
|
||||
if (lavfdopts->probescore)
|
||||
min_probe = lavfdopts->probescore;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user