[FFmpeg-devel] [PATCH 2/3] lavf/utils: handle AVERROR_REDO.

Clément Bœsch u at pkh.me
Thu Nov 26 23:19:03 CET 2015


On Thu, Nov 26, 2015 at 07:47:53PM +0100, Nicolas George wrote:
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  libavformat/utils.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> 
> An option can be added later to grant applications fine-grained control on
> the looping, but it can not be the default as it would be an API change, and
> it probably should not be the default anyway.
> 
> 
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index f33f2f5..d9165f1 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -680,6 +680,8 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
>          av_init_packet(pkt);
>          ret = s->iformat->read_packet(s, pkt);
>          if (ret < 0) {
> +            if (ret == AVERROR_REDO)
> +                continue;

is the final user ever going to expect it somehow?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151126/ceec9b05/attachment.sig>


More information about the ffmpeg-devel mailing list