Start continuity counter at 0 for pmt as well
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 8 Mar 2010 22:44:03 +0000 (22:44 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 8 Mar 2010 22:44:03 +0000 (22:44 +0000)
Originally committed as revision 22350 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegtsenc.c
tests/ref/lavf/ts

index a60c80822f5efcfb02e460b3ae99121e5b7daa3a..f5f6a6104d04a77090459ab62f09d44e6f20eb55 100644 (file)
@@ -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
index c1c6072cc1683f62e8db788e209d447289253ea6..0e86010470a411cc74b8ba1fc0cc2a1b72fd1f6d 100644 (file)
@@ -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