avformat/nutenc: Do not pass NULL to memcmp() in get_needed_flags()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Nov 2019 09:02:29 +0000 (10:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Nov 2019 20:21:59 +0000 (21:21 +0100)
commite4fdeb3fcefeb98f2225f7ccded156fb175959c5
treecc2dfa286413bf1d88f5b7cb145e798175bb1772
parent377fa6612ae2b47beba02edacc6a22128176dea9
avformat/nutenc: Do not pass NULL to memcmp() in get_needed_flags()

This compared to the other suggestions is cleaner and easier to understand
keeping the condition in the if() simple.

This affects alot of fate tests.

See: [FFmpeg-devel] [PATCH 05/11] avformat/nutenc: Don't pass NULL to memcmp
See: [FFmpeg-devel] [PATCH]lavf/nutenc: Do not call memcmp() with NULL argument

Fixes: Ticket 7980

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/nutenc.c