Commit 50fefa10 authored by Martin Storsjö's avatar Martin Storsjö

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: 's avatarMartin Storsjö <martin@martin.st>
parent f255a28d
...@@ -53,6 +53,7 @@ typedef struct MpegTSService { ...@@ -53,6 +53,7 @@ typedef struct MpegTSService {
} MpegTSService; } MpegTSService;
typedef struct MpegTSWrite { typedef struct MpegTSWrite {
const AVClass *av_class;
MpegTSSection pat; /* MPEG2 pat table */ MpegTSSection pat; /* MPEG2 pat table */
MpegTSSection sdt; /* MPEG2 sdt table context */ MpegTSSection sdt; /* MPEG2 sdt table context */
MpegTSService **services; MpegTSService **services;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment