summaryrefslogtreecommitdiffstats
path: root/audio/decode/ad_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-20 20:42:03 +0200
committerwm4 <wm4@nowhere>2014-07-20 20:42:03 +0200
commit9736f3309acf387e42aef847f594463e3351bbc2 (patch)
treeff3feecdb9dbbec909ed18c681e8a3047277a6d6 /audio/decode/ad_lavc.c
parente982b5b287d1a178bea444c6d0f81a877db2d0c9 (diff)
downloadmpv-9736f3309acf387e42aef847f594463e3351bbc2.tar.bz2
mpv-9736f3309acf387e42aef847f594463e3351bbc2.tar.xz
audio: use symbolic constants instead of magic integers
Similar to commit 26468743.
Diffstat (limited to 'audio/decode/ad_lavc.c')
-rw-r--r--audio/decode/ad_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 404cf19560..ad00e65be6 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -398,7 +398,7 @@ static int decode_audio(struct dec_audio *da, struct mp_audio *buffer, int maxle
if (!priv->frame.samples) {
if (decode_new_packet(da) < 0)
- return -1;
+ return AD_ERR;
}
if (!mp_audio_config_equals(buffer, &priv->frame))