[SCM] libav/experimental: Start continuity counter at 0 for pmt as well
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:03:41 UTC 2013
The following commit has been merged in the experimental branch:
commit 677a1144b090b8575b95f71afa03691ba11d72b7
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Mon Mar 8 22:44:03 2010 +0000
Start continuity counter at 0 for pmt as well
Originally committed as revision 22350 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index a60c808..f5f6a61 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -397,6 +397,7 @@ static int mpegts_write_header(AVFormatContext *s)
DEFAULT_PROVIDER_NAME, service_name);
service->pmt.write_packet = section_write_packet;
service->pmt.opaque = s;
+ service->pmt.cc = 15;
ts->pat.pid = PAT_PID;
ts->pat.cc = 15; // Initialize at 15 so that it wraps and be equal to 0 for the first packet we write
diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts
index c1c6072..0e86010 100644
--- a/tests/ref/lavf/ts
+++ b/tests/ref/lavf/ts
@@ -1,3 +1,3 @@
-cb7713f07c94ae0fe68a030cc5f13398 *./tests/data/lavf/lavf.ts
+29be47a2d7aa99c7840430ba313509d3 *./tests/data/lavf/lavf.ts
428452 ./tests/data/lavf/lavf.ts
./tests/data/lavf/lavf.ts CRC=0x133216c1
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list