mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
formatting code using astyle
Origin commit data
------------------
Branch: master
Commit: bc17c13de4
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-17 (Mon, 17 May 2021)
Origin message was:
------------------
- formatting code using astyle
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -39,21 +39,21 @@ extern "C" {
|
||||
|
||||
/* wrapper */
|
||||
#if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(57,25,100)
|
||||
static AVCodecParameters __attribute__ ((unused)) *get_codecpar(AVStream *stream)
|
||||
static AVCodecParameters __attribute__((unused)) *get_codecpar(AVStream *stream)
|
||||
{
|
||||
return stream->codecpar;
|
||||
}
|
||||
#else
|
||||
static AVCodecContext __attribute__ ((unused)) *get_codecpar(AVStream *stream)
|
||||
static AVCodecContext __attribute__((unused)) *get_codecpar(AVStream *stream)
|
||||
{
|
||||
return stream->codec;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (LIBAVCODEC_VERSION_MAJOR > 55)
|
||||
#define av_free_packet av_packet_unref
|
||||
#define av_free_packet av_packet_unref
|
||||
#else
|
||||
#define av_packet_unref av_free_packet
|
||||
#define av_packet_unref av_free_packet
|
||||
#endif
|
||||
/* end wrapper */
|
||||
|
||||
@@ -71,7 +71,11 @@ class Writer
|
||||
static audio_encoding_t GetAudioEncoding(enum AVCodecID id);
|
||||
static Writer *GetWriter(enum AVCodecID id, enum AVMediaType codec_type, int track_type);
|
||||
|
||||
virtual void Init(int _fd, AVStream * /*stream*/, Player *_player ) { fd = _fd; player = _player; }
|
||||
virtual void Init(int _fd, AVStream * /*stream*/, Player *_player)
|
||||
{
|
||||
fd = _fd;
|
||||
player = _player;
|
||||
}
|
||||
virtual bool Write(AVPacket *packet, int64_t pts);
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user