[FFmpeg-devel] [PATCH] mpegtsenc: fix PMT PID calculation (original) (raw)
Ronald S. Bultje rsbultje
Mon Jan 31 17:52:42 CET 2011
- Previous message: [FFmpeg-devel] [PATCH] mpegtsenc: fix PMT PID calculation
- Next message: [FFmpeg-devel] [PATCH] LGPL several h264 intra predict functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
On Mon, Jan 31, 2011 at 11:49 AM, Mans Rullgard wrote:
445996aa51f4f1d9a26456a8511988291a720ba0 caused the PMT PID to be off by one. ?This corrects it.
Signed-off-by: Mans Rullgard --- ?libavformat/mpegtsenc.c | ? ?2 +- ?1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index a1bd14c..b1bccd1 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -396,7 +396,7 @@ static MpegTSService *mpegtsaddservice(MpegTSWrite *ts, ? ? service = avmallocz(sizeof(MpegTSService)); ? ? if (!service) ? ? ? ? return NULL; - ? ?service->pmt.pid = ts->pmtstartpid + ts->nbservices; + ? ?service->pmt.pid = ts->pmtstartpid + ts->nbservices - 1; ? ? service->sid = sid; ? ? service->providername = avstrdup(providername); ? ? service->name = avstrdup(name); -- 1.7.3.5
Ok.
Ronald
- Previous message: [FFmpeg-devel] [PATCH] mpegtsenc: fix PMT PID calculation
- Next message: [FFmpeg-devel] [PATCH] LGPL several h264 intra predict functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]