diff options
author | wm4 <wm4@nowhere> | 2014-07-20 20:42:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-20 20:42:03 +0200 |
commit | 9736f3309acf387e42aef847f594463e3351bbc2 (patch) | |
tree | ff3feecdb9dbbec909ed18c681e8a3047277a6d6 /audio/decode/ad_spdif.c | |
parent | e982b5b287d1a178bea444c6d0f81a877db2d0c9 (diff) | |
download | mpv-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_spdif.c')
-rw-r--r-- | audio/decode/ad_spdif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c index c055715a32..1042fdeb48 100644 --- a/audio/decode/ad_spdif.c +++ b/audio/decode/ad_spdif.c @@ -200,7 +200,7 @@ static int decode_audio(struct dec_audio *da, struct mp_audio *buffer, int maxle struct demux_packet *mpkt = demux_read_packet(da->header); if (!mpkt) - return -1; + return AD_ERR; AVPacket pkt; mp_set_av_packet(&pkt, mpkt, NULL); @@ -216,7 +216,7 @@ static int decode_audio(struct dec_audio *da, struct mp_audio *buffer, int maxle da->pts_offset += buffer->samples; talloc_free(mpkt); if (ret < 0) - return -1; + return AD_ERR; return 0; } |