mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3: cleanup, indent
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,5 @@ typedef struct Context_s {
|
||||
ManagerHandler_t *manager;
|
||||
} Context_t;
|
||||
|
||||
int container_ffmpeg_update_tracks(Context_t * context, char *filename,
|
||||
int initial);
|
||||
int container_ffmpeg_update_tracks(Context_t * context, char *filename, int initial);
|
||||
#endif
|
||||
|
@@ -26,8 +26,7 @@
|
||||
#define VC1_VIDEO_PES_START_CODE 0xfd
|
||||
#define AAC_AUDIO_PES_START_CODE 0xcf
|
||||
|
||||
int InsertPesHeader(unsigned char *data, int size, unsigned char stream_id,
|
||||
unsigned long long int pts, int pic_start_code);
|
||||
int InsertPesHeader(unsigned char *data, int size, unsigned char stream_id, unsigned long long int pts, int pic_start_code);
|
||||
int InsertVideoPrivateDataHeader(unsigned char *data, int payload_size);
|
||||
|
||||
#endif
|
||||
|
@@ -10,7 +10,8 @@ typedef enum { PLAYBACK_OPEN, PLAYBACK_CLOSE, PLAYBACK_PLAY, PLAYBACK_STOP,
|
||||
PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT,
|
||||
PLAYBACK_SWITCH_TELETEXT, PLAYBACK_SWITCH_DVBSUBTITLE,
|
||||
PLAYBACK_FRAMEBUFFER_LOCK,
|
||||
PLAYBACK_FRAMEBUFFER_UNLOCK } PlaybackCmd_t;
|
||||
PLAYBACK_FRAMEBUFFER_UNLOCK
|
||||
} PlaybackCmd_t;
|
||||
|
||||
typedef struct PlaybackHandler_s {
|
||||
char *Name;
|
||||
|
@@ -33,8 +33,7 @@ Style: Default,Arial,64,16777215,0,16777215,0,0,0,2,2,2,2,20,20,10,0\n\n\
|
||||
[Events]\n\
|
||||
Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text\n\n\n"
|
||||
|
||||
static inline unsigned char *text_to_ass(char *text, long long int pts,
|
||||
double duration)
|
||||
static inline unsigned char *text_to_ass(char *text, long long int pts, double duration)
|
||||
{
|
||||
char buf[1024];
|
||||
unsigned int x, pos = 0;
|
||||
@@ -64,9 +63,7 @@ static inline unsigned char *text_to_ass(char *text, long long int pts,
|
||||
ec -= 6000 * em;
|
||||
es = ec / 100;
|
||||
ec -= 100 * es;
|
||||
snprintf(line, len,
|
||||
"Dialogue: Marked=0,%d:%02d:%02d.%02d,%d:%02d:%02d.%02d,Default,NTP,0000,0000,0000,!Effect,%s\n",
|
||||
sh, sm, ss, sc, eh, em, es, ec, buf);
|
||||
snprintf(line, len, "Dialogue: Marked=0,%d:%02d:%02d.%02d,%d:%02d:%02d.%02d,Default,NTP,0000,0000,0000,!Effect,%s\n", sh, sm, ss, sc, eh, em, es, ec, buf);
|
||||
|
||||
return (unsigned char *) line;
|
||||
|
||||
|
Reference in New Issue
Block a user