kopia lustrzana https://github.com/kierank/libmpegts
Set Dirac PES_packet_length to zero
rodzic
d477f9d1f8
commit
5dbd014829
|
@ -823,7 +823,8 @@ static int write_pes( ts_writer_t *w, ts_int_program_t *program, ts_frame_t *in_
|
||||||
bs_flush( &q );
|
bs_flush( &q );
|
||||||
total_size = in_frame->size + (bs_pos( &q ) >> 3);
|
total_size = in_frame->size + (bs_pos( &q ) >> 3);
|
||||||
|
|
||||||
if( stream->stream_format == LIBMPEGTS_VIDEO_MPEG2 || stream->stream_format == LIBMPEGTS_VIDEO_AVC )
|
if( stream->stream_format == LIBMPEGTS_VIDEO_MPEG2 || stream->stream_format == LIBMPEGTS_VIDEO_AVC ||
|
||||||
|
stream->stream_format == LIBMPEGTS_VIDEO_DIRAC )
|
||||||
bs_write( &s, 16, 0 ); // PES_packet_length
|
bs_write( &s, 16, 0 ); // PES_packet_length
|
||||||
else
|
else
|
||||||
bs_write( &s, 16, total_size ); // PES_packet_length
|
bs_write( &s, 16, total_size ); // PES_packet_length
|
||||||
|
|
Ładowanie…
Reference in New Issue