av_log_missing_feature() ---> avpriv_report_missing_feature()
authorDiego Biurrun <diego@biurrun.de>
Mon, 25 Feb 2013 22:53:52 +0000 (23:53 +0100)
committerDiego Biurrun <diego@biurrun.de>
Wed, 13 Mar 2013 19:42:21 +0000 (20:42 +0100)
18 files changed:
libavcodec/aac_adtstoasc_bsf.c
libavcodec/aacdec.c
libavcodec/aacsbr.c
libavcodec/alsdec.c
libavcodec/amrnbdec.c
libavcodec/amrwbdec.c
libavcodec/cavsdec.c
libavcodec/flacdec.c
libavcodec/libopencore-amr.c
libavcodec/mjpegdec.c
libavcodec/proresdec.c
libavcodec/tta.c
libavcodec/vc1.c
libavcodec/vp6.c
libavcodec/wmalosslessdec.c
libavformat/mpegts.c
libavformat/oggparseskeleton.c
libavformat/spdifdec.c

index df9a3958dbfa82c42d44fcd8dd53cc45b1286160..bec6e7f234b9f75b014388239aa69c0f28608923 100644 (file)
@@ -61,7 +61,8 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
     }
 
     if (!hdr.crc_absent && hdr.num_aac_frames > 1) {
-        av_log_missing_feature(avctx, "Multiple RDBs per frame with CRC", 0);
+        avpriv_report_missing_feature(avctx,
+                                      "Multiple RDBs per frame with CRC");
         return AVERROR_PATCHWELCOME;
     }
 
@@ -74,7 +75,10 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
         if (!hdr.chan_config) {
             init_get_bits(&gb, buf, buf_size * 8);
             if (get_bits(&gb, 3) != 5) {
-                av_log_missing_feature(avctx, "PCE based channel configuration, where the PCE is not the first syntax element", 0);
+                avpriv_report_missing_feature(avctx,
+                                              "PCE-based channel configuration "
+                                              "without PCE as first syntax "
+                                              "element");
                 return AVERROR_PATCHWELCOME;
             }
             init_put_bits(&pb, pce_data, MAX_PCE_SIZE);
index 43a6029ef4e1f78ba3000928125085438d4c47ca..06f1d08af79ad7d23023d97c5411c46ce1207013 100644 (file)
@@ -2347,7 +2347,8 @@ static int parse_adts_frame_header(AACContext *ac, GetBitContext *gb)
     size = avpriv_aac_parse_header(gb, &hdr_info);
     if (size > 0) {
         if (hdr_info.num_aac_frames != 1) {
-            av_log_missing_feature(ac->avctx, "More than one AAC RDB per ADTS frame", 0);
+            avpriv_report_missing_feature(ac->avctx,
+                                          "More than one AAC RDB per ADTS frame");
             return AVERROR_PATCHWELCOME;
         }
         push_output_configuration(ac);
index 0d0e23d83f8c54324cc93eab12d404865dfaad9b..de63b8025d4724f33135edd0cdec94c609fe894f 100644 (file)
@@ -920,7 +920,7 @@ static void read_sbr_extension(AACContext *ac, SpectralBandReplication *sbr,
 #if 1
             *num_bits_left -= ff_ps_read_data(ac->avctx, gb, &sbr->ps, *num_bits_left);
 #else
-            av_log_missing_feature(ac->avctx, "Parametric Stereo", 0);
+            avpriv_report_missing_feature(ac->avctx, "Parametric Stereo");
             skip_bits_long(gb, *num_bits_left); // bs_fill_bits
             *num_bits_left = 0;
 #endif
index f87c94425bef1e9af8b1414f13974051f97341fd..3d419bba10dc026277a5a26f74532444e4eb098b 100644 (file)
@@ -422,7 +422,8 @@ static int check_specific_config(ALSDecContext *ctx)
     #define MISSING_ERR(cond, str, errval)              \
     {                                                   \
         if (cond) {                                     \
-            av_log_missing_feature(ctx->avctx, str, 0); \
+            avpriv_report_missing_feature(ctx->avctx,   \
+                                          str);         \
             error = errval;                             \
         }                                               \
     }
index 20c1896ec3fb17ba5e34ff528f9df7a366694f3e..36df41daf7b5644fac9646a55c580ba525def6ba 100644 (file)
@@ -156,7 +156,7 @@ static av_cold int amrnb_decode_init(AVCodecContext *avctx)
     int i;
 
     if (avctx->channels > 1) {
-        av_log_missing_feature(avctx, "multi-channel AMR", 0);
+        avpriv_report_missing_feature(avctx, "multi-channel AMR");
         return AVERROR_PATCHWELCOME;
     }
 
index 354b039025166d78b9a17f6fb58782f809c5d45a..e057829fd7981fe878d39135bd5e44fd07d07074 100644 (file)
@@ -92,7 +92,7 @@ static av_cold int amrwb_decode_init(AVCodecContext *avctx)
     int i;
 
     if (avctx->channels > 1) {
-        av_log_missing_feature(avctx, "multi-channel AMR", 0);
+        avpriv_report_missing_feature(avctx, "multi-channel AMR");
         return AVERROR_PATCHWELCOME;
     }
 
index fbc21c4d818c59988cddeaeb1426f6402e247146..b19f09065d5104d9e98fc4a74ff1d62af170737b 100644 (file)
@@ -1081,7 +1081,8 @@ static int decode_seq_header(AVSContext *h)
     width  = get_bits(&h->gb, 14);
     height = get_bits(&h->gb, 14);
     if ((h->width || h->height) && (h->width != width || h->height != height)) {
-        av_log_missing_feature(h->avctx, "Width/height changing in CAVS", 0);
+        avpriv_report_missing_feature(h->avctx,
+                                      "Width/height changing in CAVS");
         return AVERROR_PATCHWELCOME;
     }
     h->width  = width;
index 91412ef82140ad68b6d30efbd43df61ff90eed59..ec54dfc292bfae2860e65c0c5045b873c700a0be 100644 (file)
@@ -371,7 +371,7 @@ static inline int decode_subframe(FLACContext *s, int channel)
         bps -= wasted;
     }
     if (bps > 32) {
-        av_log_missing_feature(s->avctx, "Decorrelated bit depth > 32", 0);
+        avpriv_report_missing_feature(s->avctx, "Decorrelated bit depth > 32");
         return AVERROR_PATCHWELCOME;
     }
 
index d46ddd7c9d31c19c09a90b6389b7a22a73352f45..1f71a5bf011923b47827dfa65dd360d296eeee4a 100644 (file)
@@ -34,7 +34,7 @@ static int amr_decode_fix_avctx(AVCodecContext *avctx)
     avctx->sample_rate = 8000 * is_amr_wb;
 
     if (avctx->channels > 1) {
-        av_log_missing_feature(avctx, "multi-channel AMR", 0);
+        avpriv_report_missing_feature(avctx, "multi-channel AMR");
         return AVERROR_PATCHWELCOME;
     }
 
index 17930080f503ff123bb821ba9af18eb923826e46..abc32d11c137d07a88be0af6219824338671b8d1 100644 (file)
@@ -243,9 +243,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
         nb_components > MAX_COMPONENTS)
         return -1;
     if (s->ls && !(s->bits <= 8 || nb_components == 1)) {
-        av_log_missing_feature(s->avctx,
-                               "For JPEG-LS anything except <= 8 bits/component"
-                               " or 16-bit gray", 0);
+        avpriv_report_missing_feature(s->avctx,
+                                      "JPEG-LS that is not <= 8 "
+                                      "bits/component or 16-bit gray");
         return AVERROR_PATCHWELCOME;
     }
     s->nb_components = nb_components;
@@ -270,7 +270,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
     }
 
     if (s->ls && (s->h_max > 1 || s->v_max > 1)) {
-        av_log_missing_feature(s->avctx, "Subsampling in JPEG-LS", 0);
+        avpriv_report_missing_feature(s->avctx, "Subsampling in JPEG-LS");
         return AVERROR_PATCHWELCOME;
     }
 
index 27226c04ca47e76544452f5b240fcc45ac89e32e..c42e44415398ba4bf5cdb73b6cf11ef33500f2c5 100644 (file)
@@ -170,7 +170,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
 
     ctx->alpha_info = buf[17] & 0xf;
     if (ctx->alpha_info)
-        av_log_missing_feature(avctx, "Alpha channel", 0);
+        avpriv_report_missing_feature(avctx, "Alpha channel");
 
     ctx->qmat_changed = 0;
     ptr   = buf + 20;
index f8ad34f1908090c719ad55746d6dab6f23b05c59..05ada5972d829f902d091cebe1abc58fc6b91a10 100644 (file)
@@ -222,7 +222,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
             return -1;
         }
         if (s->format == FORMAT_ENCRYPTED) {
-            av_log_missing_feature(s->avctx, "Encrypted TTA", 0);
+            av_report_missing_feature(s->avctx, "Encrypted TTA");
             return AVERROR_PATCHWELCOME;
         }
         avctx->channels = s->channels = get_bits(&s->gb, 16);
index b467e4601e335d9d07abd6248ede853b3a288264..e93ccc46ea2670f9d9f1c9c23be82ab9e6ec09d6 100644 (file)
@@ -885,7 +885,7 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
         }
     }
     if (v->panscanflag) {
-        av_log_missing_feature(v->s.avctx, "Pan-scan", 0);
+        avpriv_report_missing_feature(v->s.avctx, "Pan-scan");
         //...
     }
     if (v->p_frame_skipped) {
index 30b489dfca73e9bdfb191f90093e43a618f0504b..2e25a55f3fbf8f455f1facaec19e4097e84acaec 100644 (file)
@@ -63,7 +63,7 @@ static int vp6_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
             return AVERROR_INVALIDDATA;
         s->filter_header = buf[1] & 0x06;
         if (buf[1] & 1) {
-            av_log_missing_feature(s->avctx, "Interlacing", 0);
+            avpriv_report_missing_feature(s->avctx, "Interlacing");
             return AVERROR_PATCHWELCOME;
         }
         if (separated_coeff || !s->filter_header) {
index f9361baa7b657070bdc8bbf1ecf3ac75aa6aeb38..2ee721b9b58c1a6b26ece049cda99512e5411197 100644 (file)
@@ -189,7 +189,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
             avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
         else if (s->bits_per_sample == 24) {
             avctx->sample_fmt = AV_SAMPLE_FMT_S32P;
-            av_log_missing_feature(avctx, "Bit-depth higher than 16", 0);
+            avpriv_report_missing_feature(avctx, "Bit-depth higher than 16");
             return AVERROR_PATCHWELCOME;
         } else {
             av_log(avctx, AV_LOG_ERROR, "Unknown bit-depth: %d\n",
index 61b8b55c42b5bf66ac4ca87af909fe112658ef1f..418833e35bd77886d99ee617bcd8c97b51c57805 100644 (file)
@@ -1091,7 +1091,7 @@ static int parse_MP4SLDescrTag(MP4DescrParseContext *d, int64_t off, int len)
         descr->sl.au_seq_num_len     = (lengths >> 7) & 0x1f;
         descr->sl.packet_seq_num_len = (lengths >> 2) & 0x1f;
     } else {
-        av_log_missing_feature(d->s, "Predefined SLConfigDescriptor\n", 0);
+        avpriv_report_missing_feature(d->s, "Predefined SLConfigDescriptor");
     }
     return 0;
 }
index 2de067d84eb1f0d5fc8139fb2fa314c0840356bc..f437c69444f432396aa10edddb0d84c39e9f5ff9 100644 (file)
@@ -75,8 +75,8 @@ static int skeleton_header(AVFormatContext *s, int idx)
         target_idx = ogg_find_stream(ogg, AV_RL32(buf+12));
         start_granule = AV_RL64(buf+36);
         if (os->start_granule != OGG_NOGRANULE_VALUE) {
-            av_log_missing_feature(s,
-                                   "Multiple fisbone for the same stream", 0);
+            avpriv_report_missing_feature(s,
+                                          "Multiple fisbone for the same stream");
             return 1;
         }
         if (target_idx >= 0 && start_granule != OGG_NOGRANULE_VALUE) {
index 6d37c94f7586a4857d6d48996ed8bdccf56061da..c8d4a3f430c1800d82e116ddc3fd094345431046 100644 (file)
@@ -213,7 +213,7 @@ static int spdif_read_packet(AVFormatContext *s, AVPacket *pkt)
         st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
         st->codec->codec_id = codec_id;
     } else if (codec_id != s->streams[0]->codec->codec_id) {
-        av_log_missing_feature(s, "Codec change in IEC 61937", 0);
+        avpriv_report_missing_feature(s, "Codec change in IEC 61937");
         return AVERROR_PATCHWELCOME;
     }