[FFmpeg-devel] [PATCH 1/2] Add 'rw_timeout' into URLContext

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Aug 29 09:51:18 CEST 2012


2012/8/29 Nicolas George <nicolas.george at normalesup.org>:
> #define AVERROR_TIMEOUT FFERRTAG('T','M','O','U')
>
> Bonus: it allows to distinguish a timeout requested to lavf from a timeout
> issued from the network layer.

Valid variant. Although i don't agree on goodness of having distinct
retcodes both meaning timeout.
Also in my perception, AVERROR_xxx constant should be defined only if
standard Exxx does not exist (only AVERROR_INVALIDDATA breaks my
rule).

-- 
Andrey Utkin


More information about the ffmpeg-devel mailing list