-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit: from me this seems to just be a ffmpeg update. Also never knew about https://github.com/MXVideoPlayer/MX-FFmpeg Thanks https://github.com/ottokang
- Loading branch information
1 parent
dea648a
commit d6bc11c
Showing
13 changed files
with
475 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* utils.c | ||
* | ||
* Copyright (c) 2003 Fabrice Bellard | ||
* Copyright (c) 2013 Zhang Rui <[email protected]> | ||
* | ||
* This file is part of ijkPlayer. | ||
* | ||
* ijkPlayer is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* ijkPlayer is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with ijkPlayer; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#include <stdlib.h> | ||
#include "url.h" | ||
|
||
|
||
#define IJK_FF_PROTOCOL(x) \ | ||
extern URLProtocol ff_##x##_protocol; \ | ||
int ijkav_register_##x##_protocol(URLProtocol *protocol, int protocol_size); \ | ||
int ijkav_register_##x##_protocol(URLProtocol *protocol, int protocol_size) \ | ||
{ \ | ||
if (protocol_size != sizeof(URLProtocol)) { \ | ||
av_log(NULL, AV_LOG_ERROR, "ijkav_register_##x##_protocol: ABI mismatch.\n"); \ | ||
return -1; \ | ||
} \ | ||
memcpy(&ff_##x##_protocol, protocol, protocol_size); \ | ||
return 0; \ | ||
} | ||
|
||
#define IJK_DUMMY_PROTOCOL(x) \ | ||
IJK_FF_PROTOCOL(x); \ | ||
static const AVClass ijk_##x##_context_class = { \ | ||
.class_name = #x, \ | ||
.item_name = av_default_item_name, \ | ||
.version = LIBAVUTIL_VERSION_INT, \ | ||
}; \ | ||
\ | ||
URLProtocol ff_##x##_protocol = { \ | ||
.name = #x, \ | ||
.url_open2 = ijkdummy_open, \ | ||
.priv_data_size = 1, \ | ||
.priv_data_class = &ijk_##x##_context_class, \ | ||
}; | ||
|
||
static int ijkdummy_open(URLContext *h, const char *arg, int flags, AVDictionary **options) | ||
{ | ||
return -1; | ||
} | ||
|
||
IJK_FF_PROTOCOL(async); | ||
IJK_DUMMY_PROTOCOL(ijkmediadatasource); | ||
IJK_DUMMY_PROTOCOL(ijkhttphook); | ||
IJK_DUMMY_PROTOCOL(ijklongurl); | ||
IJK_DUMMY_PROTOCOL(ijksegment); | ||
IJK_DUMMY_PROTOCOL(ijktcphook); | ||
IJK_DUMMY_PROTOCOL(ijkio); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.