mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
removed duplicate header settings
This commit is contained in:
parent
0869e30b3e
commit
fc1dbfa15e
@ -13,7 +13,7 @@
|
||||
|
||||
/*!
|
||||
\file
|
||||
\version \$Id: p_mp3.cpp,v 1.1 2003/02/16 17:04:38 mosu Exp $
|
||||
\version \$Id: p_mp3.cpp,v 1.2 2003/02/16 20:19:48 mosu Exp $
|
||||
\brief MP3 output module
|
||||
\author Moritz Bunkus <moritz @ bunkus.org>
|
||||
*/
|
||||
@ -169,7 +169,7 @@ void mp3_packetizer_c::set_header() {
|
||||
&GetNextChild<KaxTrackEntry>(static_cast<KaxTracks &>(*kax_tracks),
|
||||
static_cast<KaxTrackEntry &>(*kax_last_entry));
|
||||
kax_last_entry = track_entry;
|
||||
|
||||
|
||||
serialno = track_number++;
|
||||
KaxTrackNumber &tnumber =
|
||||
GetChild<KaxTrackNumber>(static_cast<KaxTrackEntry &>(*track_entry));
|
||||
@ -198,9 +198,6 @@ int mp3_packetizer_c::process(char *buf, int size, int last_frame) {
|
||||
unsigned long header;
|
||||
mp3_header_t mp3header;
|
||||
|
||||
if (packetno == 0)
|
||||
set_header();
|
||||
|
||||
add_to_buffer(buf, size);
|
||||
while ((packet = get_mp3_packet(&header, &mp3header)) != NULL) {
|
||||
if ((4 - ((header >> 17) & 3)) != 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user