opus: avoid NULL pointer dereference
ogg: fix order of frees
Merge remote-tracking branch: upstream/master