[MPlayer-cvslog] r18939 - in trunk: libmpdemux/demux_mkv.c libmpdemux/demuxer.h libmpdemux/matroska.h mplayer.c
eugeni
subversion at mplayerhq.hu
Fri Jul 7 20:02:50 CEST 2006
Author: eugeni
Date: Fri Jul 7 20:02:49 2006
New Revision: 18939
Modified:
trunk/libmpdemux/demux_mkv.c
trunk/libmpdemux/demuxer.h
trunk/libmpdemux/matroska.h
trunk/mplayer.c
Log:
Rename mkv_sh_sub_t to sh_sub_t, move it to demuxer.h.
Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c (original)
+++ trunk/libmpdemux/demux_mkv.c Fri Jul 7 20:02:49 2006
@@ -129,7 +129,7 @@
int num_encodings;
/* For VobSubs */
- mkv_sh_sub_t sh_sub;
+ sh_sub_t sh_sub;
} mkv_track_t;
typedef struct mkv_index
@@ -2124,9 +2124,9 @@
{
if (track->private_data != NULL)
{
- demuxer->sub->sh = malloc(sizeof(mkv_sh_sub_t));
+ demuxer->sub->sh = malloc(sizeof(sh_sub_t));
if (demuxer->sub->sh != NULL)
- memcpy(demuxer->sub->sh, &track->sh_sub, sizeof(mkv_sh_sub_t));
+ memcpy(demuxer->sub->sh, &track->sh_sub, sizeof(sh_sub_t));
}
}
}
@@ -3571,9 +3571,9 @@
return -1;
if (demuxer->sub->sh == NULL)
- demuxer->sub->sh = malloc(sizeof(mkv_sh_sub_t));
+ demuxer->sub->sh = malloc(sizeof(sh_sub_t));
if (demuxer->sub->sh != NULL)
- memcpy(demuxer->sub->sh, &track->sh_sub, sizeof(mkv_sh_sub_t));
+ memcpy(demuxer->sub->sh, &track->sh_sub, sizeof(sh_sub_t));
return track->tnum;
}
Modified: trunk/libmpdemux/demuxer.h
==============================================================================
--- trunk/libmpdemux/demuxer.h (original)
+++ trunk/libmpdemux/demuxer.h Fri Jul 7 20:02:49 2006
@@ -121,6 +121,16 @@
char *copyright;
} demuxer_info_t;
+typedef struct {
+ char type; // t = text, v = VobSub
+ int has_palette; // If we have a valid palette
+ unsigned int palette[16]; // for VobSubs
+ int width, height; // for VobSubs
+ int custom_colors;
+ unsigned int colors[4];
+ int forced_subs_only;
+} sh_sub_t;
+
#define MAX_A_STREAMS 256
#define MAX_V_STREAMS 256
Modified: trunk/libmpdemux/matroska.h
==============================================================================
--- trunk/libmpdemux/matroska.h (original)
+++ trunk/libmpdemux/matroska.h Fri Jul 7 20:02:49 2006
@@ -58,16 +58,6 @@
#define MKV_S_SSA "S_SSA" // Deprecated
#define MKV_S_ASS "S_ASS" // Deprecated
-typedef struct {
- char type; // t = text, v = VobSub
- int has_palette; // If we have a valid palette
- unsigned int palette[16]; // for VobSubs
- int width, height; // for VobSubs
- int custom_colors;
- unsigned int colors[4];
- int forced_subs_only;
-} mkv_sh_sub_t;
-
int demux_mkv_num_subs(demuxer_t *demuxer);
int demux_mkv_change_subs(demuxer_t *demuxer, int new_num);
void demux_mkv_get_sub_lang(demuxer_t *demuxer, int track_num, char *lang,
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Fri Jul 7 20:02:49 2006
@@ -1947,8 +1947,8 @@
if (demuxer->type == DEMUXER_TYPE_MATROSKA) {
d_dvdsub->id = demux_mkv_change_subs(demuxer, dvdsub_id);
if (d_dvdsub->id >= 0 &&
- ((mkv_sh_sub_t *)d_dvdsub->sh)->type == 'v') {
- mkv_sh_sub_t *mkv_sh_sub = (mkv_sh_sub_t *)d_dvdsub->sh;
+ ((sh_sub_t *)d_dvdsub->sh)->type == 'v') {
+ sh_sub_t *mkv_sh_sub = (sh_sub_t *)d_dvdsub->sh;
if (vo_spudec != NULL)
spudec_free(vo_spudec);
vo_spudec =
@@ -3405,8 +3405,8 @@
#endif
if ((vo_spudec == NULL) && (demuxer->type == DEMUXER_TYPE_MATROSKA) &&
- (d_dvdsub->sh != NULL) && (((mkv_sh_sub_t *)d_dvdsub->sh)->type == 'v')) {
- mkv_sh_sub_t *mkv_sh_sub = (mkv_sh_sub_t *)d_dvdsub->sh;
+ (d_dvdsub->sh != NULL) && (((sh_sub_t *)d_dvdsub->sh)->type == 'v')) {
+ sh_sub_t *mkv_sh_sub = (sh_sub_t *)d_dvdsub->sh;
current_module = "spudec_init_matroska";
vo_spudec =
spudec_new_scaled_vobsub(mkv_sh_sub->palette, mkv_sh_sub->colors,
More information about the MPlayer-cvslog
mailing list