1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine code, remove the base dts, donot drop start BP frames

This commit is contained in:
winlin 2013-11-26 10:48:37 +08:00
parent b4235582dc
commit dbdfb29de1

10
trunk/src/core/srs_core_hls.cpp Normal file → Executable file
View file

@ -646,6 +646,11 @@ int SrsTSMuxer::write_audio(u_int32_t time, SrsCodec* codec, SrsCodecSample* sam
audio_buffer->append(buf->bytes, buf->size); audio_buffer->append(buf->bytes, buf->size);
} }
if ((ret = SrsMpegtsWriter::write_frame(fd, audio_frame, audio_buffer)) != ERROR_SUCCESS) {
return ret;
}
srs_freep(audio_frame);
return ret; return ret;
} }
@ -723,11 +728,6 @@ int SrsTSMuxer::write_video(u_int32_t time, SrsCodec* codec, SrsCodecSample* sam
return ret; return ret;
} }
if ((ret = SrsMpegtsWriter::write_frame(fd, audio_frame, audio_buffer)) != ERROR_SUCCESS) {
return ret;
}
srs_freep(audio_frame);
return ret; return ret;
} }