]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/assdec.c
avconv: print the codecs names in the stream mapping.
[ffmpeg] / libavformat / assdec.c
index a50150513c6b244c71efb92b2d43e8055e1218bb..08b520e6563a6772e7808ba76243d1281c9fbcae 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/mathematics.h"
 #include "avformat.h"
 #include "internal.h"
 
@@ -168,7 +169,7 @@ static int read_seek2(AVFormatContext *s, int stream_index,
     ASSContext *ass = s->priv_data;
 
     if (flags & AVSEEK_FLAG_BYTE) {
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
     } else if (flags & AVSEEK_FLAG_FRAME) {
         if (ts < 0 || ts >= ass->event_count)
             return AVERROR(ERANGE);