[FFmpeg-devel] [PATCH] avformat/dhav: also support ZLAV packets
Moritz Barsnick
barsnick at gmx.net
Tue Nov 3 23:10:51 EET 2020
On Sat, Oct 24, 2020 at 13:32:25 +1300, Michael Keeley wrote:
> - if (memcmp(p->buf, "DHAV", 4))
> + if (memcmp(p->buf, "DHAV", 4) != 0 && memcmp(p->buf, "ZLAV", 4) != 0)
The "!= 0" isn't necessary.
> - if (!memcmp(signature, "DHAV", 4)) {
> + if (memcmp(signature, "DHAV", 4) == 0 || memcmp(signature, "ZLAV", 4) == 0) {
Also here, ffmpeg prefers the "!memcmp()" style.
Moritz
More information about the ffmpeg-devel
mailing list