]> git.sesse.net Git - ffmpeg/commit
avfilter/af_headphone: Avoid duplicating string needlessly
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 24 Aug 2020 21:03:45 +0000 (23:03 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 9 Sep 2020 11:46:58 +0000 (13:46 +0200)
commitbff1d0c6587243369f12c575f5dcb20d6e7e910b
tree58d1870677021c186fa6efdc7d094bdb67d089f0
parent71daaafa3a7f0e3494b73055bdbb3fd8aa114173
avfilter/af_headphone: Avoid duplicating string needlessly

The string given by an AVOption that contains the channel assignment
is used only once; ergo it doesn't matter that parsing the string via
av_strtok() is destructive. There is no need to make a copy.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_headphone.c