diff options
author | Martin Storsjö <martin@martin.st> | 2011-05-20 11:33:57 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-05-20 15:16:09 +0300 |
commit | 50fefa10de920e16036f2be977c39fc0c286d024 (patch) | |
tree | 0ac6d3907b1a06af6a6ff9e0210c80d3cc902366 /libavformat/mpegtsenc.c | |
parent | f255a28d140a64ea4c1a5060061863aec993b5ea (diff) | |
download | ffmpeg-50fefa10de920e16036f2be977c39fc0c286d024.tar.gz |
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>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 2aa9698651..393b779168 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -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; |