]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/daud.c
matroskadec: allows inserting chapters with unspecified end
[ffmpeg] / libavformat / daud.c
index ec81b7b1ce0d61790434f622b530f19c824cbda3..ff74d05025eac518284c65450061991f55b8b9a9 100644 (file)
@@ -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);