* making resolution abbreviations right

* introducing sntsc/spal for square pixel ntsc/pal

Originally committed as revision 2177 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Roman Shaposhnik 22 years ago
parent 400738b1fb
commit ba2a8cb40b
  1. 2
      ffmpeg.c
  2. 8
      libavformat/utils.c

@ -2577,7 +2577,7 @@ static void show_formats(void)
printf(" %s:", up->name); printf(" %s:", up->name);
printf("\n"); printf("\n");
printf("Frame size, frame rate abbreviations: ntsc pal film ntsc-film sqcif qcif cif 4cif\n"); printf("Frame size, frame rate abbreviations: ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif\n");
printf("Motion estimation methods:"); printf("Motion estimation methods:");
pp = motion_str; pp = motion_str;
while (*pp) { while (*pp) {

@ -1224,8 +1224,12 @@ typedef struct {
} AbvEntry; } AbvEntry;
static AbvEntry frame_abvs[] = { static AbvEntry frame_abvs[] = {
{ "ntsc", 352, 240, 30000, 1001 }, { "ntsc", 720, 480, 30000, 1001 },
{ "pal", 352, 288, 25, 1 }, { "pal", 720, 576, 25, 1 },
{ "qntsc", 352, 240, 30000, 1001 }, /* VCD compliant ntsc */
{ "qpal", 352, 288, 25, 1 }, /* VCD compliant pal */
{ "sntsc", 352, 240, 30000, 1001 }, /* square pixel ntsc */
{ "spal", 352, 288, 25, 1 }, /* square pixel pal */
{ "film", 352, 240, 24, 1 }, { "film", 352, 240, 24, 1 },
{ "ntsc-film", 352, 240, 24000, 1001 }, { "ntsc-film", 352, 240, 24000, 1001 },
{ "sqcif", 128, 96, 0, 0 }, { "sqcif", 128, 96, 0, 0 },

Loading…
Cancel
Save