diff mbox series

[FFmpeg-devel,6/7] avformat/sdp: Store strings instead of pointers to strings in array

Message ID 20200709103542.19909-6-andreas.rheinhardt@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/7] avformat/avc: Fix undefined shift and assert when reading exp-golomb num
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt July 9, 2020, 10:35 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/sdp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;