]> git.sesse.net Git - ffmpeg/commit
avformat/rtsp: Put strings instead of pointers to strings into array
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 3 Apr 2020 13:02:07 +0000 (15:02 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 20 Apr 2020 16:21:39 +0000 (18:21 +0200)
commit4e254ec6be86977d9ea173f1769398f153bd1d28
treea15b5217581e67d9096a979b8667bcffb55318e2
parent87b056e6af0ccebc6813c54c88b5eb78ac06faf2
avformat/rtsp: Put strings instead of pointers to strings into array

In this example, the difference in length between the shortest and
longest string is three, so that not using pointers to strings saves
space even on 32bit systems.

Moreover, there is no need to use a sentinel here; it can be replaced
with FF_ARRAY_ELEMS.

Reviewed-by: Ross Nicholson <phunkyfish@gmail.com>
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/rtsp.c