summaryrefslogtreecommitdiffstats
path: root/audio/decode
diff options
context:
space:
mode:
Diffstat (limited to 'audio/decode')
-rw-r--r--audio/decode/ad_lavc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 35ebce07cc..0f442cef52 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -263,9 +263,12 @@ static int init(struct dec_audio *da, const char *decoder)
// Decode at least 1 sample: (to get header filled)
for (int tries = 1; ; tries++) {
int x = decode_new_packet(da);
- if (x >= 0 && ctx->frame.samples > 0)
+ if (x >= 0 && ctx->frame.samples > 0) {
+ mp_msg(MSGT_DECAUDIO, MSGL_V,
+ "Initial decode succeeded after %d packets.\n", tries);
break;
- if (tries >= 5) {
+ }
+ if (tries >= 50) {
mp_msg(MSGT_DECAUDIO, MSGL_ERR,
"ad_lavc: initial decode failed\n");
uninit(da);