Commit 746ad2ae authored by hartman's avatar hartman
Browse files

Set original framesize on the spu format for nero vobsubs in mp4, so that...

Set original framesize on the spu format for nero vobsubs in mp4, so that rescaling will work for videos in a cropped resolution compared to the vobsubs
parent 7f95dd67
......@@ -1359,6 +1359,10 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
if( p_track->fmt.i_cat == SPU_ES )
{
p_track->fmt.i_codec = VLC_FOURCC( 's','p','u',' ' );
if( p_track->i_width > 0 )
p_track->fmt.subs.spu.i_original_frame_width = p_track->i_width;
if( p_track->i_height > 0 )
p_track->fmt.subs.spu.i_original_frame_height = p_track->i_height;
break;
}
/* Fallback */
......
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