Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Default format changed to MKV, CodecID->AVCodecID (dickontoo#10)
  • Loading branch information
MDXDave committed Jan 12, 2016
1 parent 715cb22 commit 99ffe1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void dumpport(OMX_HANDLETYPE handle, int port)



static int mapcodec(enum CodecID id)
static int mapcodec(enum AVCodecID id)
{
printf("Mapping codec ID %d (%x)\n", id, id);
switch (id) {
Expand Down Expand Up @@ -348,9 +348,9 @@ static AVFormatContext *makeoutputcontext(AVFormatContext *ic,
fmt = av_guess_format(NULL, oname, NULL);
if (!fmt) {
fprintf(stderr, "Can't guess format for %s; defaulting to "
"MPEG\n",
"MKV\n",
oname);
fmt = av_guess_format(NULL, "MPEG", NULL);
fmt = av_guess_format("matroska", NULL, NULL);
}
if (!fmt) {
fprintf(stderr, "Failed even that. Bye bye.\n");
Expand Down

0 comments on commit 99ffe1a

Please sign in to comment.