You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/concatf: ignore trailing whitespaces
The concatf protocol returns an opaque error on open if concatf list file contains trailing newlines. Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro> Reviewed-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -245,6 +245,10 @@ static av_cold int concatf_open(URLContext *h, const char *uri, int flags)
|
||||
char *node_uri;
|
||||
int64_t size;
|
||||
size_t len = i;
|
||||
int leading_spaces = strspn(cursor, " \n\t\r");
|
||||
|
||||
if (!cursor[leading_spaces])
|
||||
break;
|
||||
|
||||
node_uri = av_get_token(&cursor, "\r\n");
|
||||
if (!node_uri) {
|
||||
|
Reference in New Issue
Block a user