mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/h264dec: Add ff_tlog() with trace information about h264 probing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
dae89802a6
commit
aa9c6b6986
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "rawdec.h"
|
#include "rawdec.h"
|
||||||
|
#include "libavcodec/internal.h"
|
||||||
|
|
||||||
static int h264_probe(AVProbeData *p)
|
static int h264_probe(AVProbeData *p)
|
||||||
{
|
{
|
||||||
@ -70,6 +71,7 @@ static int h264_probe(AVProbeData *p)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ff_tlog(NULL, "sps:%d pps:%d idr:%d sli:%d res:%d\n", sps, pps, idr, sli, res);
|
||||||
|
|
||||||
if (sps && pps && (idr || sli > 3) && res < (sps + pps + idr))
|
if (sps && pps && (idr || sli > 3) && res < (sps + pps + idr))
|
||||||
return AVPROBE_SCORE_EXTENSION + 1; // 1 more than .mpg
|
return AVPROBE_SCORE_EXTENSION + 1; // 1 more than .mpg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user