diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-11-20 22:04:14 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-11-20 22:04:14 +0100 |
commit | d513fb1c753292fc9f43b9e6fbd6997af85d19c6 (patch) | |
tree | 95620863941d6728bdc5d58b0e2b919f972e83bb /libavformat/utils.c | |
parent | b1e190d0fddbad800a8b89f9ea840e73257bf6e5 (diff) | |
download | ffmpeg-d513fb1c753292fc9f43b9e6fbd6997af85d19c6.tar.gz |
Add -skip_initial_bytes option.
Fixes ticket #1909.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |