Commit b6d10946 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Trackname support for avi

parent 9394b1be
...@@ -329,6 +329,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -329,6 +329,7 @@ static int Open( vlc_object_t * p_this )
avi_track_t *tk = malloc( sizeof( avi_track_t ) ); avi_track_t *tk = malloc( sizeof( avi_track_t ) );
avi_chunk_list_t *p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, i ); avi_chunk_list_t *p_strl = AVI_ChunkFind( p_hdrl, AVIFOURCC_strl, i );
avi_chunk_strh_t *p_strh = AVI_ChunkFind( p_strl, AVIFOURCC_strh, 0 ); avi_chunk_strh_t *p_strh = AVI_ChunkFind( p_strl, AVIFOURCC_strh, 0 );
avi_chunk_STRING_t *p_strn = AVI_ChunkFind( p_strl, AVIFOURCC_strn, 0 );
avi_chunk_strf_auds_t *p_auds; avi_chunk_strf_auds_t *p_auds;
avi_chunk_strf_vids_t *p_vids; avi_chunk_strf_vids_t *p_vids;
es_format_t fmt; es_format_t fmt;
...@@ -461,6 +462,10 @@ static int Open( vlc_object_t * p_this ) ...@@ -461,6 +462,10 @@ static int Open( vlc_object_t * p_this )
free( tk ); free( tk );
continue; continue;
} }
if( p_strn )
{
fmt.psz_description = strdup( p_strn->p_str );
}
tk->p_es = es_out_Add( p_demux->out, &fmt ); tk->p_es = es_out_Add( p_demux->out, &fmt );
TAB_APPEND( p_sys->i_track, p_sys->track, tk ); TAB_APPEND( p_sys->i_track, p_sys->track, tk );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment