Browse Source

mpegtsenc: Add an AVClass pointer to the private data

Since a private class is set for this muxer, the callers will
assume that the private data starts with an AVClass pointer.
If no such member exists, the first few bytes of the struct
will be overwritten, and the class pointer may be broken at
any later time.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.8
Martin Storsjö 14 years ago
parent
commit
50fefa10de
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mpegtsenc.c

+ 1
- 0
libavformat/mpegtsenc.c View File

@@ -53,6 +53,7 @@ typedef struct MpegTSService {
} MpegTSService;

typedef struct MpegTSWrite {
const AVClass *av_class;
MpegTSSection pat; /* MPEG2 pat table */
MpegTSSection sdt; /* MPEG2 sdt table context */
MpegTSService **services;


Loading…
Cancel
Save