[FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF
James Almer
jamrial at gmail.com
Mon Oct 16 04:55:43 EEST 2017
On 10/15/2017 9:38 PM, Michael Niedermayer wrote:
> On Sat, Oct 14, 2017 at 07:27:34PM +0200, Daniel Kucera wrote:
>> transfer_func variable passed to retry_transfer_wrapper
>> are h->prot->url_read and h->prot->url_write functions.
>> These need to return EOF or other error properly.
>> In case of returning >= 0, url_read/url_write is retried
>> until error is returned.
>>
>> Signed-off-by: Daniel Kucera <daniel.kucera at gmail.com>
>> ---
>> libavformat/avio.c | 6 ++++--
>> libavformat/aviobuf.c | 20 ++++++++++++--------
>> libavformat/cache.c | 4 ++--
>> 3 files changed, 18 insertions(+), 12 deletions(-)
>
> This changes:
> ./ffmpeg -y -i 'concat:matrixbench_mpeg2.mpg|matrixbench_mpeg2.mpg' -vsync 0 -an file.avi
In case he doesn't have this sample:
http://samples.ffmpeg.org/benchmark/testsuite1/matrixbench_mpeg2.mpg
Basically, with the patch applied the above command doesn't concatenate
the input as requested.
More information about the ffmpeg-devel
mailing list