wavenc: use codec descriptors to get the codec name
authorAnton Khirnov <anton@khirnov.net>
Tue, 29 Apr 2014 15:01:17 +0000 (17:01 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 18 May 2014 18:33:38 +0000 (20:33 +0200)
commitd246231e4714119faac6c7acd881d3b687bb8b11
treea91d317b07d5a7eef7523c60fb1b90f56f1250dc
parent968a62a9d9e3a785ce1f79b80facfe09c6c14544
wavenc: use codec descriptors to get the codec name

Also, return a proper error code.
libavformat/wavenc.c