X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fdaud.c;h=ff74d05025eac518284c65450061991f55b8b9a9;hb=ad9d62ef22de83b36fc7da009734292a209ab765;hp=ec81b7b1ce0d61790434f622b530f19c824cbda3;hpb=7fbde3431a9e4ce5d14d608a615e45409fad6234;p=ffmpeg diff --git a/libavformat/daud.c b/libavformat/daud.c index ec81b7b1ce0..ff74d05025e 100644 --- a/libavformat/daud.c +++ b/libavformat/daud.c @@ -1,6 +1,6 @@ /* * D-Cinema audio demuxer - * Copyright (c) 2005 Reimar Döffinger. + * Copyright (c) 2005 Reimar Döffinger * * This file is part of FFmpeg. * @@ -34,10 +34,10 @@ static int daud_header(AVFormatContext *s, AVFormatParameters *ap) { } static int daud_packet(AVFormatContext *s, AVPacket *pkt) { - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; int ret, size; if (url_feof(pb)) - return AVERROR_IO; + return AVERROR(EIO); size = get_be16(pb); get_be16(pb); // unknown ret = av_get_packet(pb, pkt, size);