summaryrefslogtreecommitdiffstats
path: root/audio/format.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-02 22:44:39 +0100
committerwm4 <wm4@nowhere>2019-11-02 22:44:39 +0100
commit0e1cfe0c421699ab7fbf6f17b83721d28135a0b8 (patch)
tree703a6d077d4ee56c20a8f3f9c500b0b62466ba47 /audio/format.c
parent7bf31c51f2bd5b0d95b12a503be47e930419cae9 (diff)
downloadmpv-0e1cfe0c421699ab7fbf6f17b83721d28135a0b8.tar.bz2
mpv-0e1cfe0c421699ab7fbf6f17b83721d28135a0b8.tar.xz
vd_lavc: fix prepare_decoding() failure modes
prepare_decoding() returned a bool that was supposed to tell whether decoding could work, or if something was fucked. After recent changes to the decoder loop, this did not work anymore, and caused an endless loop. Redo it, so it makes more sense. avctx being NULL (software fallback initialization failed) now signals EOF. hwdec_failed needs to be handled on send_packet() only, where it probably never happens anyway. (Who was the idiot who made libavcodec have two entrypoints for decoding? Oh right, it was me. PEBKAC.)
Diffstat (limited to 'audio/format.c')
0 files changed, 0 insertions, 0 deletions