[FFmpeg-soc] [soc]: r2383 - dvbmuxer/mpegpesenc.c
bcoudurier
subversion at mplayerhq.hu
Wed Jun 4 10:28:39 CEST 2008
Author: bcoudurier
Date: Wed Jun 4 10:28:38 2008
New Revision: 2383
Log:
fix tests
Modified:
dvbmuxer/mpegpesenc.c
Modified: dvbmuxer/mpegpesenc.c
==============================================================================
--- dvbmuxer/mpegpesenc.c (original)
+++ dvbmuxer/mpegpesenc.c Wed Jun 4 10:28:38 2008
@@ -213,7 +213,7 @@ int ff_pes_write_buf(AVFormatContext *ct
P-STD_buffer_size field be included in the first packet of
every stream. (see SVCD standard p. 26 V.2.3.1 and V.2.3.2
and MPEG-2 standard 2.7.7) */
- if (!(stream->format & PES_FMT_TS) && stream->packet_number == 0)
+ if (stream->format != PES_FMT_TS && stream->packet_number == 0)
pes_flags |= 0x01;
bytestream_put_byte(&p, pes_flags); /* flags */
@@ -256,7 +256,7 @@ int ff_pes_write_buf(AVFormatContext *ct
bytestream_put_byte(&p, 0xff);
}
- if (!(stream->format & PES_FMT_TS) && startcode == PRIVATE_STREAM_1) {
+ if (stream->format != PES_FMT_TS && startcode == PRIVATE_STREAM_1) {
bytestream_put_byte(&p, stream->id);
if (stream->id >= 0xa0) {
/* LPCM (XXX: check nb_frames) */
More information about the FFmpeg-soc
mailing list