diff options
author | wm4 <wm4@nowhere> | 2020-02-15 18:12:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-15 18:30:42 +0100 |
commit | e54ebaec5229f9f82bc6b77cef5c5b75b7577487 (patch) | |
tree | bbc3f98c5de5873012c2c338bd4dadfd790b3301 /sub/img_convert.c | |
parent | c92c08edc671e64c31d98584e709b0f712864772 (diff) | |
download | mpv-e54ebaec5229f9f82bc6b77cef5c5b75b7577487.tar.bz2 mpv-e54ebaec5229f9f82bc6b77cef5c5b75b7577487.tar.xz |
f_decoder_wrapper, sd_add: accept "null" codec
This is for easier use with the "delay_open" feature added in the
previous commit. The "null" codec is reported if the codec is unknown
(because the stream was not opened yet at time the tracks were added).
The rest of the timeline mechanism will set the correct codec at
runtime. But this means every time a delay-loaded track is selected, it
wants to initialize a decoder for the "null" codec.
Accept a "null" decoder. But since FFmpeg has no such codec, and out of
my own laziness, just let it fall back to "common" codecs that need no
other initialization data.
Diffstat (limited to 'sub/img_convert.c')
0 files changed, 0 insertions, 0 deletions