|
@@ -16,6 +16,8 @@ |
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
|
#include "avcodec.h" |
|
|
#include "avcodec.h" |
|
|
|
|
|
|
|
|
#include "libavutil/common.h" |
|
|
#include "libavutil/common.h" |
|
@@ -1939,3 +1941,14 @@ const AVCodecDescriptor *avcodec_descriptor_next(const AVCodecDescriptor *prev) |
|
|
return prev + 1; |
|
|
return prev + 1; |
|
|
return NULL; |
|
|
return NULL; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const AVCodecDescriptor *avcodec_descriptor_get_by_name(const char *name) |
|
|
|
|
|
{ |
|
|
|
|
|
const AVCodecDescriptor *desc = NULL; |
|
|
|
|
|
|
|
|
|
|
|
while ((desc = avcodec_descriptor_next(desc))) { |
|
|
|
|
|
if (!strcmp(desc->name, name)) |
|
|
|
|
|
return desc; |
|
|
|
|
|
} |
|
|
|
|
|
return NULL; |
|
|
|
|
|
} |