[FFmpeg-devel] [PATCH 6/7] avformat/sdp: Store strings instead of pointers to strings in array
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Thu Jul 9 13:35:41 EEST 2020
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavformat/sdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 3acbf5d197..aa0569cd0d 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -231,7 +231,7 @@ static char *extradata2psets_hevc(AVCodecParameters *par)
int extradata_size = par->extradata_size;
AVIOContext *pb = NULL;
int ps_pos[3] = { 0 };
- static const char * const ps_names[3] = { "vps", "sps", "pps" };
+ static const char ps_names[3][4] = { "vps", "sps", "pps" };
int num_arrays, num_nalus;
int pos, i, j;
--
2.20.1
More information about the ffmpeg-devel
mailing list