aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-13 22:17:12 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-04 05:20:09 +0100
commitee3ce73bfb29cfa5a0f0202b0357304af4ba8f9a (patch)
treebecc2f82ebb05d9ca3a6d66a5eefda0a5acc922c
parent3994eebb1e8765a96197811f33fd98a7add4380a (diff)
downloadffmpeg-ee3ce73bfb29cfa5a0f0202b0357304af4ba8f9a.tar.gz
avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 05886c9d4edddb07a4cdc6afee8b30cd9c80b4db) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index bd02da6d41..8e5ec48154 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -503,7 +503,7 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
}
/* rewind. reuse probe buffer to avoid seeking */
- ret = ffio_rewind_with_probe_data(pb, &buf, pd.buf_size);
+ ret = ffio_rewind_with_probe_data(pb, &buf, buf_offset);
return ret < 0 ? ret : score;
}