Skip to content

Commit

Permalink
don't filter aud.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 18, 2016
1 parent 1470f31 commit 03efcc5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/srs/srs_librtmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef SRS_AUTO_HEADER_HPP
#define SRS_AUTO_HEADER_HPP

#define SRS_AUTO_BUILD_TS "1471493494"
#define SRS_AUTO_BUILD_DATE "2016-08-18 12:11:34"
#define SRS_AUTO_BUILD_TS "1471494191"
#define SRS_AUTO_BUILD_DATE "2016-08-18 12:23:11"
#define SRS_AUTO_UNAME "Darwin winlin.lan 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64"
#define SRS_AUTO_USER_CONFIGURE "--x86-x64 --export-librtmp-single=/Users/winlin/git/srs-librtmp/src/srs"
#define SRS_AUTO_CONFIGURE "--prefix=/usr/local/srs --without-hls --without-hds --without-dvr --without-nginx --without-ssl --without-ffmpeg --without-transcode --without-ingest --without-stat --without-http-callback --without-http-server --without-stream-caster --without-http-api --with-librtmp --with-research --without-utest --without-gperf --without-gmc --without-gmp --without-gcp --without-gprof --without-arm-ubuntu12 --without-mips-ubuntu12 --log-trace"
Expand Down Expand Up @@ -34205,9 +34205,12 @@ int srs_write_h264_raw_frame(Context* context,
// ignore others.
// 5bits, 7.3.1 NAL unit syntax,
// H.264-AVC-ISO_IEC_14496-10.pdf, page 44.
// 7: SPS, 8: PPS, 5: I Frame, 1: P Frame
// 7: SPS, 8: PPS, 5: I Frame, 1: P Frame, 9: AUD
SrsAvcNaluType nut = (SrsAvcNaluType)(frame[0] & 0x1f);
if (nut != SrsAvcNaluTypeSPS && nut != SrsAvcNaluTypePPS && nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR) {
if (nut != SrsAvcNaluTypeSPS && nut != SrsAvcNaluTypePPS
&& nut != SrsAvcNaluTypeIDR && nut != SrsAvcNaluTypeNonIDR
&& nut != SrsAvcNaluTypeAccessUnitDelimiter
) {
return ret;
}

Expand Down

0 comments on commit 03efcc5

Please sign in to comment.