Add -skip_initial_bytes option.

Fixes ticket #1909.
This commit is contained in:
Carl Eugen Hoyos
2012-11-20 22:04:14 +01:00
parent b1e190d0fd
commit d513fb1c75
3 changed files with 9 additions and 0 deletions

View File

@@ -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) {