aboutsummaryrefslogtreecommitdiffhomepage
path: root/audio/decode
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-01-19 12:44:28 +0100
committerGravatar wm4 <wm4@nowhere>2017-01-19 12:44:28 +0100
commit8cbb2b5e9a652457ca3aa35c55091983f6bcbb35 (patch)
tree99665ca732c8a41fd6d74a3f544ddf261512a23a /audio/decode
parent880bf54d7e7151875c373f3b749b1f47aeb9a87c (diff)
ad_spdif: log avformat errors
Diffstat (limited to 'audio/decode')
-rw-r--r--audio/decode/ad_spdif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c
index 775834ecba..e38c9e5077 100644
--- a/audio/decode/ad_spdif.c
+++ b/audio/decode/ad_spdif.c
@@ -304,8 +304,10 @@ static bool receive_frame(struct dec_audio *da, struct mp_audio **out)
spdif_ctx->out_buffer_len = 0;
int ret = av_write_frame(spdif_ctx->lavf_ctx, &pkt);
avio_flush(spdif_ctx->lavf_ctx->pb);
- if (ret < 0)
+ if (ret < 0) {
+ MP_ERR(da, "spdif mux error: '%s'\n", mp_strerror(AVUNERROR(ret)));
goto done;
+ }
int samples = spdif_ctx->out_buffer_len / spdif_ctx->fmt.sstride;
*out = mp_audio_pool_get(spdif_ctx->pool, &spdif_ctx->fmt, samples);