summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-06 22:38:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-06 22:38:38 +0100
commit74080ded9630f9492d9a382815502c141c146900 (patch)
treec02d246f034e07f3a6c1f383f3ec139e7bf88e57 /libavformat/mpeg.c
parente15b29bb18bee8b65fab5a3c873540e01fd20afe (diff)
avformat/mpeg: add commented out av_log() to probe
This is commonly needed for debugging mis-detections Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 8e1848c9ca..9cf0bcba47 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -102,6 +102,9 @@ static int mpegps_probe(AVProbeData *p)
if (vid + audio > invalid + 1) /* invalid VDR files nd short PES streams */
score = AVPROBE_SCORE_EXTENSION / 2;
+// av_log(NULL, AV_LOG_ERROR, "vid:%d aud:%d sys:%d pspack:%d invalid:%d size:%d \n",
+// vid, audio, sys, pspack, invalid, p->buf_size);
+
if (sys > invalid && sys * 9 <= pspack * 10)
return (audio > 12 || vid > 3 || pspack > 2) ? AVPROBE_SCORE_EXTENSION + 2
: AVPROBE_SCORE_EXTENSION / 2 + 1; // 1 more than mp3