-
-
Save kepstin/f94e33d783a8a82b9540dd0c8cafcc83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libavformat/avformat.h> | |
#include <libavcodec/avcodec.h> | |
#include <stdio.h> | |
void main(void) { | |
av_register_all(); | |
/* Search for the 'rtp' output format */ | |
AVOutputFormat *format = av_oformat_next(NULL); | |
while ((format = av_oformat_next(format)) != NULL) { | |
printf("%s\n", format->name); | |
if (strcmp(format->name, "rtp") == 0) | |
break; | |
} | |
if (format == NULL) { | |
fprintf(stderr, "Couldn't locate rtp AVOutputFormat\n"); | |
exit(1); | |
} | |
int query = avformat_query_codec(format, AV_CODEC_ID_OPUS, FF_COMPLIANCE_NORMAL); | |
printf("format query for opus in rtp: %d\n", query); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment