Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DVDDemuxFFmpeg] Ignore extradata for unknown stream types
https://github.com/xbianonpi/xbian issue 765 has a file with 250M of AVMEDIA_TYPE_ATTACHMENT which fails to play on pi. Don't bother allocating and copying the data as we won't do anything with it
- Loading branch information
bbc8d32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok but I am still interested in what the issue is. why does copying extradata harm in this case?
bbc8d32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extradata is 256M (yes a quarter or a gigabyte) for this file.
We don't have enough SDRAM to allocate a second 250M buffer. And copying 250M is not a cheap operation.
Ideally it would be discarded earlier and the first 250M buffer wouldn't be allocated and we wouldn't waste the time reading it (it takes 30 seconds on my linux x86 PC to open this file). But I suspect that is inside ffmpeg and it doesn't know whether anyone will want it.
bbc8d32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for clarifying. please submit to mainline.