Skip to content
Snippets Groups Projects
Commit 50fefa10 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

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: default avatarMartin Storsjö <martin@martin.st>
parent f255a28d
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment