Commit 0bac7a43 authored by Nicolas George's avatar Nicolas George

lavf/flvdec: use FFERROR_REDO instead of AVERROR(EAGAIN).

Fix trac ticket #5041.
parent 3ab1e5a4
...@@ -882,7 +882,7 @@ retry: ...@@ -882,7 +882,7 @@ retry:
} }
if (size == 0) { if (size == 0) {
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
...@@ -927,13 +927,13 @@ retry: ...@@ -927,13 +927,13 @@ retry:
type, size, flags); type, size, flags);
skip: skip:
avio_seek(s->pb, next, SEEK_SET); avio_seek(s->pb, next, SEEK_SET);
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
/* skip empty data packets */ /* skip empty data packets */
if (!size) { if (!size) {
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
...@@ -973,7 +973,7 @@ skip: ...@@ -973,7 +973,7 @@ skip:
|| st->discard >= AVDISCARD_ALL || st->discard >= AVDISCARD_ALL
) { ) {
avio_seek(s->pb, next, SEEK_SET); avio_seek(s->pb, next, SEEK_SET);
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
...@@ -1068,7 +1068,7 @@ retry_duration: ...@@ -1068,7 +1068,7 @@ retry_duration:
if (st->codec->extradata) { if (st->codec->extradata) {
if ((ret = flv_queue_extradata(flv, s->pb, stream_type, size)) < 0) if ((ret = flv_queue_extradata(flv, s->pb, stream_type, size)) < 0)
return ret; return ret;
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
if ((ret = flv_get_extradata(s, st, size)) < 0) if ((ret = flv_get_extradata(s, st, size)) < 0)
...@@ -1095,14 +1095,14 @@ retry_duration: ...@@ -1095,14 +1095,14 @@ retry_duration:
} }
} }
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
} }
/* skip empty data packets */ /* skip empty data packets */
if (!size) { if (!size) {
ret = AVERROR(EAGAIN); ret = FFERROR_REDO;
goto leave; goto leave;
} }
......
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