mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
fix possible segfault arm hardware, thx DboxOldie
Origin commit data
------------------
Branch: master
Commit: 50df0bcfac
Author: Frankenstone <dampf_acc@online.de>
Date: 2019-02-27 (Wed, 27 Feb 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -276,8 +276,10 @@ AVCodecContext* open_codec(AVMediaType mediaType, AVFormatContext* formatContext
|
||||
int image_to_mpeg2(const char *image_name, int fd)
|
||||
{
|
||||
int ret = 0;
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
|
||||
av_register_all();
|
||||
avcodec_register_all();
|
||||
#endif
|
||||
|
||||
AVFormatContext *formatContext = avformat_alloc_context();
|
||||
if (formatContext && (ret = avformat_open_input(&formatContext, image_name, NULL, NULL)) == 0){
|
||||
|
Reference in New Issue
Block a user