forked from FFmpeg/FFmpeg
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: Make sure to copy all the things that mpegts can set in read_p…
…acket pls don't kill me nev Fixes #3. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d40f238
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.
Instead of piling more fields into this list, how about this idea:
Premises:
So:
When a NOHEADER demuxer changes a field after the stream has already been created, it sets a field in AVStream->internal to inform find_stream_info (or read_frame_internal or wherever it makes the most sense, find_stream_info would be saner, imho, but have to see how that plays with parsers) to close any potential decoder for probing, recreate internal->avctx entirely from the codecpar, and go from there.
That way you don't have to pile a list of fields somewhere in here, but all fields can potentially change, and we have a clear condition when to update internal avctx, instead of doing it all the time.