History

Change all occurences of "inofficial" to "unofficial" in code, comments and options. Keep old options until next major version bump.

Patch by Rodney Baker, rodney d baker a iinet d net d au Originally committed as revision 24021 to svn://svn.ffmpeg.org/ffmpeg/trunk

Rodney Baker committed 16 years ago

Commit 2d525ef1 parent a07a06b8 files · +20 −11Browse files

Unified · Split

8 files
  1. Changelog +1 −1
  2. doc/APIchanges +3 −0
  3. ffmpeg.c +1 −1
  4. libavcodec/avcodec.h +7 −4
  5. libavcodec/libgsm.c +2 −2
  6. libavcodec/mpeg12enc.c +1 −1
  7. libavcodec/mpegvideo_enc.c +1 −1
  8. libavcodec/options.c +4 −1
Changelog+1−1
@@ -17,7 +17,7 @@ version <next>: · 16 unmodified lines
1717 - native VP8 decoder
1818 - RTSP tunneling over HTTP
1919 - RTP depacketization of SVQ3
20−
20+- -strict inofficial replaced by -strict unofficial
2121
2222
2323 version 0.6:
doc/APIchanges+3−0
@@ -12,6 +12,9 @@ libavutil: 2009-03-08 · 11 unmodified lines
1212
1313 API changes, most recent first:
1414
15+2010-06-29 - r23885 - lavc 52.79.0
16+ Added FF_COMPLIANCE_UNOFFICIAL and changed all instances of FF_COMPLIANCE_INOFFICIAL to use FF_COMPLIANCE_UNOFFICIAL
17+
1518 2010-06-28 - r23835 - lavfi 1.20.1 - av_parse_color()
1619 Extend av_parse_color() syntax, make it accept an alpha value specifier and
1720 set the alpha value to 255 by default.
ffmpeg.c+1−1
@@ -688,7 +688,7 @@ static void choose_pixel_fmt(AVStream *st, AVCodec *codec) · 687 unmodified lines
688688 }
689689 if(*p == -1
690690 && !( st->codec->codec_id==CODEC_ID_MJPEG
691− && st->codec->strict_std_compliance <= FF_COMPLIANCE_INOFFICIAL
691+ && st->codec->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL
692692 && ( st->codec->pix_fmt == PIX_FMT_YUV420P
693693 || st->codec->pix_fmt == PIX_FMT_YUV422P)))
694694 st->codec->pix_fmt = codec->pix_fmts[0];
libavcodec/avcodec.h+7−4
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "libavutil/avutil.h"
3131
3232 #define LIBAVCODEC_VERSION_MAJOR 52
33−#define LIBAVCODEC_VERSION_MINOR 78
33+#define LIBAVCODEC_VERSION_MINOR 79
3434 #define LIBAVCODEC_VERSION_MICRO 1
3535
3636 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -1352,10 +1352,10 @@ typedef struct AVCodecContext { · 1315 unmodified lines
13521352 * - encoding: Set by user.
13531353 * - decoding: Set by user.
13541354 * Setting this to STRICT or higher means the encoder and decoder will
1355− * generally do stupid things, whereas setting it to inofficial or lower
1355+ * generally do stupid things, whereas setting it to unofficial or lower
13561356 * will mean the encoder might produce output that is not supported by all
13571357 * spec-compliant decoders. Decoders don't differentiate between normal,
1358− * inofficial and experimental (that is, they always try to decode things
1358+ * unofficial and experimental (that is, they always try to decode things
13591359 * when they can) unless they are explicitly asked to behave stupidly
13601360 * (=strictly conform to the specs)
13611361 */
@@ -1363,7 +1363,10 @@ typedef struct AVCodecContext { · 1 unmodified line
13631363 #define FF_COMPLIANCE_VERY_STRICT 2 ///< Strictly conform to an older more strict version of the spec or reference software.
13641364 #define FF_COMPLIANCE_STRICT 1 ///< Strictly conform to all the things in the spec no matter what consequences.
13651365 #define FF_COMPLIANCE_NORMAL 0
1366−#define FF_COMPLIANCE_INOFFICIAL -1 ///< Allow inofficial extensions.
1366+#if LIBAVCODEC_VERSION_MAJOR < 53
1367+#define FF_COMPLIANCE_INOFFICIAL -1 ///< Allow inofficial extensions (deprecated - use FF_COMPLIANCE_UNOFFICIAL instead).
1368+#endif
1369+#define FF_COMPLIANCE_UNOFFICIAL -1 ///< Allow unofficial extensions
13671370 #define FF_COMPLIANCE_EXPERIMENTAL -2 ///< Allow nonstandardized experimental things.
13681371
13691372 /**
libavcodec/libgsm.c+2−2
@@ -54,7 +54,7 @@ static av_cold int libgsm_init(AVCodecContext *avctx) { · 53 unmodified lines
5454 if (avctx->sample_rate != 8000) {
5555 av_log(avctx, AV_LOG_ERROR, "Sample rate 8000Hz required for GSM, got %dHz\n",
5656 avctx->sample_rate);
57− if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL)
57+ if(avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL)
5858 return -1;
5959 }
6060 if (avctx->bit_rate != 13000 /* Official */ &&
@@ -62,7 +62,7 @@ static av_cold int libgsm_init(AVCodecContext *avctx) { · 1 unmodified line
6262 avctx->bit_rate != 0 /* Unknown; a.o. mov does not set bitrate when decoding */ ) {
6363 av_log(avctx, AV_LOG_ERROR, "Bitrate 13000bps required for GSM, got %dbps\n",
6464 avctx->bit_rate);
65− if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL)
65+ if(avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL)
6666 return -1;
6767 }
6868 }
libavcodec/mpeg12enc.c+1−1
@@ -119,7 +119,7 @@ static int find_frame_rate_index(MpegEncContext *s){ · 118 unmodified lines
119119 for(i=1;i<14;i++) {
120120 int64_t n0= 1001LL/ff_frame_rate_tab[i].den*ff_frame_rate_tab[i].num*s->avctx->time_base.num;
121121 int64_t n1= 1001LL*s->avctx->time_base.den;
122− if(s->avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL && i>=9) break;
122+ if(s->avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL && i>=9) break;
123123
124124 d = FFABS(n0 - n1);
125125 if(d < dmin){
libavcodec/mpegvideo_enc.c+1−1
@@ -254,7 +254,7 @@ av_cold int MPV_encode_init(AVCodecContext *avctx) · 253 unmodified lines
254254 case CODEC_ID_LJPEG:
255255 case CODEC_ID_MJPEG:
256256 if(avctx->pix_fmt != PIX_FMT_YUVJ420P && avctx->pix_fmt != PIX_FMT_YUVJ422P && avctx->pix_fmt != PIX_FMT_RGB32 &&
257− ((avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P) || avctx->strict_std_compliance>FF_COMPLIANCE_INOFFICIAL)){
257+ ((avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P) || avctx->strict_std_compliance>FF_COMPLIANCE_UNOFFICIAL)){
258258 av_log(avctx, AV_LOG_ERROR, "colorspace not supported in jpeg\n");
259259 return -1;
260260 }
libavcodec/options.c+4−1
@@ -160,7 +160,10 @@ static const AVOption options[]={ · 159 unmodified lines
160160 {"very", "strictly conform to a older more strict version of the spec or reference software", 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_VERY_STRICT, INT_MIN, INT_MAX, V|D|E, "strict"},
161161 {"strict", "strictly conform to all the things in the spec no matter what consequences", 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_STRICT, INT_MIN, INT_MAX, V|D|E, "strict"},
162162 {"normal", NULL, 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_NORMAL, INT_MIN, INT_MAX, V|D|E, "strict"},
163−{"inofficial", "allow unofficial extensions", 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_INOFFICIAL, INT_MIN, INT_MAX, V|D|E, "strict"},
163+#if LIBAVCODEC_VERSION_MAJOR < 53
164+{"inofficial", "allow unofficial extensions (deprecated - use unofficial)", 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_UNOFFICIAL, INT_MIN, INT_MAX, V|D|E, "strict"},
165+#endif
166+{"unofficial", "allow unofficial extensions", 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_UNOFFICIAL, INT_MIN, INT_MAX, V|D|E, "strict"},
164167 {"experimental", "allow non standardized experimental things", 0, FF_OPT_TYPE_CONST, FF_COMPLIANCE_EXPERIMENTAL, INT_MIN, INT_MAX, V|D|E, "strict"},
165168 {"b_qoffset", "qp offset between P and B frames", OFFSET(b_quant_offset), FF_OPT_TYPE_FLOAT, 1.25, -FLT_MAX, FLT_MAX, V|E},
166169 {"er", "set error detection aggressivity", OFFSET(error_recognition), FF_OPT_TYPE_INT, FF_ER_CAREFUL, INT_MIN, INT_MAX, A|V|D, "er"},

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t