From d513fb1c753292fc9f43b9e6fbd6997af85d19c6 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 20 Nov 2012 22:04:14 +0100 Subject: Add -skip_initial_bytes option. Fixes ticket #1909. --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/utils.c') diff --git a/libavformat/utils.c b/libavformat/utils.c index 4760f455e1..400623149c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -561,6 +561,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma if ((ret = init_input(s, filename, &tmp)) < 0) goto fail; + avio_skip(s->pb, s->skip_initial_bytes); /* check filename in case an image number is expected */ if (s->iformat->flags & AVFMT_NEEDNUMBER) { -- cgit v1.2.3