mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 09:35:22 +00:00
avformat/matroskadec: Slightly simplify version check
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
880519c1de
commit
6f134c6d17
@ -2027,12 +2027,12 @@ static int matroska_parse_flac(AVFormatContext *s,
|
|||||||
|
|
||||||
static int mkv_field_order(MatroskaDemuxContext *matroska, int64_t field_order)
|
static int mkv_field_order(MatroskaDemuxContext *matroska, int64_t field_order)
|
||||||
{
|
{
|
||||||
int major, minor, micro, bttb = 0;
|
int minor, micro, bttb = 0;
|
||||||
|
|
||||||
/* workaround a bug in our Matroska muxer, introduced in version 57.36 alongside
|
/* workaround a bug in our Matroska muxer, introduced in version 57.36 alongside
|
||||||
* this function, and fixed in 57.52 */
|
* this function, and fixed in 57.52 */
|
||||||
if (matroska->muxingapp && sscanf(matroska->muxingapp, "Lavf%d.%d.%d", &major, &minor, µ) == 3)
|
if (matroska->muxingapp && sscanf(matroska->muxingapp, "Lavf57.%d.%d", &minor, µ) == 2)
|
||||||
bttb = (major == 57 && minor >= 36 && minor <= 51 && micro >= 100);
|
bttb = (minor >= 36 && minor <= 51 && micro >= 100);
|
||||||
|
|
||||||
switch (field_order) {
|
switch (field_order) {
|
||||||
case MATROSKA_VIDEO_FIELDORDER_PROGRESSIVE:
|
case MATROSKA_VIDEO_FIELDORDER_PROGRESSIVE:
|
||||||
|
Loading…
Reference in New Issue
Block a user