diff options
author | wm4 <wm4@nowhere> | 2013-03-07 23:37:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-07 23:42:58 +0100 |
commit | 14427ae2ee1923eeeb5189f6a0a3c9ebf391eff6 (patch) | |
tree | dcd9f65dfbdb6e8443b2d3fa92e6a1359bb5f676 /core/screenshot.h | |
parent | fe4213b164ad19bd94273cb179ee7c61f6094b59 (diff) | |
download | mpv-14427ae2ee1923eeeb5189f6a0a3c9ebf391eff6.tar.bz2 mpv-14427ae2ee1923eeeb5189f6a0a3c9ebf391eff6.tar.xz |
core: make more robust against missing libavcodec AVCodecDescriptor entries
Missing entries cause avcodec_descriptor_get() to return NULL, and in
turn mp_codec_from_av_codec_id() will return NULL. This shouldn't
happen, and avcodec_descriptor_get() returning NULL for a valid codec is
clearly a bug.
But make it more robust anyway, and use the decoder's name if this
happens, because I doubt maintainance of the AVCodecDescriptor table
in ffmpeg/Libav will always be perfect and reliable.
Diffstat (limited to 'core/screenshot.h')
0 files changed, 0 insertions, 0 deletions