From d73a458f279f1918a08d06b0dd43a798a71b2f74 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 8 Mar 2010 20:59:00 +0000 Subject: [PATCH] Start continuity counter at 0 for streams Originally committed as revision 22344 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegtsenc.c | 1 + tests/ref/lavf/ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 6ad58dbab0..a60c80822f 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -421,6 +421,7 @@ static int mpegts_write_header(AVFormatContext *s) ts_st->payload_pts = AV_NOPTS_VALUE; ts_st->payload_dts = AV_NOPTS_VALUE; ts_st->first_pts_check = 1; + ts_st->cc = 15; /* update PCR pid by using the first video stream */ if (st->codec->codec_type == CODEC_TYPE_VIDEO && service->pcr_pid == 0x1fff) diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts index c42e247b82..c1c6072cc1 100644 --- a/tests/ref/lavf/ts +++ b/tests/ref/lavf/ts @@ -1,3 +1,3 @@ -1e39846ad39b799686df372fcf08d8b0 *./tests/data/lavf/lavf.ts +cb7713f07c94ae0fe68a030cc5f13398 *./tests/data/lavf/lavf.ts 428452 ./tests/data/lavf/lavf.ts ./tests/data/lavf/lavf.ts CRC=0x133216c1