Commit 721113be authored by Anton Khirnov's avatar Anton Khirnov
Browse files

matroskadec: return more correct error code on read error.

parent a8a2271f
......@@ -597,8 +597,9 @@ static int ebml_read_num(MatroskaDemuxContext *matroska, AVIOContext *pb,
av_log(matroska->ctx, AV_LOG_ERROR,
"Read error at pos. %"PRIu64" (0x%"PRIx64")\n",
pos, pos);
return pb->error ? pb->error : AVERROR(EIO);
return AVERROR(EIO); /* EOS or actual I/O error */
/* get the length of the EBML number */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment