From c7e0b571fd1404100ca5a1dbeba9b89d32521f10 Mon Sep 17 00:00:00 2001 From: Sebastian Roth Date: Wed, 20 Jun 2018 11:13:08 +0800 Subject: [PATCH] Call av_register_all, else playback of local files might fail. --- 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