From 8bd9b3e9d657eb5fa7ba93b06ec9635c9940fec1 Mon Sep 17 00:00:00 2001 From: Artem Meleshko <> Date: Mon, 13 Aug 2018 09:05:20 +0300 Subject: [PATCH] Call av_register_all, else playback of local files might fail. #26 --- DLGPlayer/codec/DLGPlayerDecoder.m | 1 + 1 file changed, 1 insertion(+) diff --git a/DLGPlayer/codec/DLGPlayerDecoder.m b/DLGPlayer/codec/DLGPlayerDecoder.m index e67c9cc..a08297a 100644 --- a/DLGPlayer/codec/DLGPlayerDecoder.m +++ b/DLGPlayer/codec/DLGPlayerDecoder.m @@ -71,6 +71,7 @@ - (BOOL)open:(NSString *)url error:(NSError **)error { } // 1. Init + av_register_all(); avformat_network_init(); // 2. Open Input