Skip to content
Snippets Groups Projects
Commit 171adca6 authored by Steven Liu's avatar Steven Liu
Browse files

Revert "flvdec: Check the avio_seek return value after reading a metadata packet"

This reverts commit ef7fe81b.
parent 61e25ab0
No related branches found
No related tags found
No related merge requests found
...@@ -1015,13 +1015,7 @@ retry: ...@@ -1015,13 +1015,7 @@ retry:
"Skipping flv packet: type %d, size %d, flags %d.\n", "Skipping flv packet: type %d, size %d, flags %d.\n",
type, size, flags); type, size, flags);
skip: skip:
if (avio_seek(s->pb, next, SEEK_SET) != next) { avio_seek(s->pb, next, SEEK_SET);
// This can happen if flv_read_metabody above read past
// next, on a non-seekable input, and the preceding data has
// been flushed out from the IO buffer.
av_log(s, AV_LOG_ERROR, "Unable to seek to the next packet\n");
return AVERROR_INVALIDDATA;
}
ret = FFERROR_REDO; ret = FFERROR_REDO;
goto leave; goto leave;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment