mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
dvenc: dont fail hard if the timecode is invalid
Instead just dont store the timecode Fixes Ticket2187 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
1 parent
b0635e2fcf
commit
f0eacbc760
1 file changed
+2
-2
+2
-2
@@ -376,8 +376,8 @@ static int dv_write_header(AVFormatContext *s)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (tcr)
|
if (tcr && av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s) >= 0)
|
||||||
return av_timecode_init_from_string(&dvc->tc, rate, tcr->value, s);
|
return 0;
|
||||||
return av_timecode_init(&dvc->tc, rate, 0, 0, s);
|
return av_timecode_init(&dvc->tc, rate, 0, 0, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user