Commit a02a027f authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/spudec/spudec.c: packetizer needs to duplicate the input es_format_t.

parent 1d545957
......@@ -90,8 +90,10 @@ subpicture_t * E_(ParsePacket)( decoder_t *p_dec )
/* Get display time now. If we do it later, we may miss the PTS. */
p_spu_data->i_pts = p_sys->i_pts;
p_spu->i_original_picture_width = p_dec->fmt_in.subs.spu.i_original_frame_width;
p_spu->i_original_picture_height = p_dec->fmt_in.subs.spu.i_original_frame_height;
p_spu->i_original_picture_width =
p_dec->fmt_in.subs.spu.i_original_frame_width;
p_spu->i_original_picture_height =
p_dec->fmt_in.subs.spu.i_original_frame_height;
/* Getting the control part */
if( ParseControlSeq( p_dec, p_spu, p_spu_data ) )
......
......@@ -102,6 +102,8 @@ static int PacketizerOpen( vlc_object_t *p_this )
return VLC_EGENERIC;
}
p_dec->p_sys->b_packetizer = VLC_TRUE;
es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
p_dec->fmt_out.i_codec = VLC_FOURCC( 's','p','u',' ' );
return VLC_SUCCESS;
}
......
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