Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-03-31 11:40:34 +0300
committerClément Bœsch <cboesch@gopro.com>2017-03-31 11:40:34 +0300
commite3287077ecff33bd02227b85ec760fe47d796f54 (patch)
treed94ccb713264f90ad6048bfab85ef7fb85807fca /libavformat
parentb6c293d5e609a7b651c47d3de4749840ae00492e (diff)
parent67deba8a416d818f3d95aef0aa916589090396e2 (diff)
Merge commit '67deba8a416d818f3d95aef0aa916589090396e2'
* commit '67deba8a416d818f3d95aef0aa916589090396e2': Use avpriv_report_missing_feature() where appropriate Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avienc.c3
-rw-r--r--libavformat/lxfdec.c5
-rw-r--r--libavformat/matroskadec.c7
-rw-r--r--libavformat/mpc8.c2
-rw-r--r--libavformat/rsoenc.c2
-rw-r--r--libavformat/rtpdec_jpeg.c2
-rw-r--r--libavformat/rtpdec_latm.c6
-rw-r--r--libavformat/rtpdec_xiph.c14
-rw-r--r--libavformat/rtsp.c3
-rw-r--r--libavformat/spdifenc.c3
-rw-r--r--libavformat/wvdec.c3
11 files changed, 23 insertions, 27 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 91b8c40e32..e8c0c7159e 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -368,8 +368,7 @@ static int avi_write_header(AVFormatContext *s)
// XSUB subtitles behave like video tracks, other subtitles
// are not (yet) supported.
if (par->codec_id != AV_CODEC_ID_XSUB) {
- av_log(s, AV_LOG_ERROR,
- "Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
+ avpriv_report_missing_feature(s, "Subtitle streams other than DivX XSUB");
return AVERROR_PATCHWELCOME;
}
case AVMEDIA_TYPE_VIDEO:
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c
index 99e56f243f..9b3eb6a650 100644
--- a/libavformat/lxfdec.c
+++ b/libavformat/lxfdec.c
@@ -181,7 +181,7 @@ static int get_packet_header(AVFormatContext *s)
st->codecpar->bits_per_coded_sample = (audio_format >> 6) & 0x3F;
if (st->codecpar->bits_per_coded_sample != (audio_format & 0x3F)) {
- av_log(s, AV_LOG_WARNING, "only tightly packed PCM currently supported\n");
+ avpriv_report_missing_feature(s, "Not tightly packed PCM");
return AVERROR_PATCHWELCOME;
}
@@ -191,8 +191,7 @@ static int get_packet_header(AVFormatContext *s)
case 24: st->codecpar->codec_id = AV_CODEC_ID_PCM_S24LE_PLANAR; break;
case 32: st->codecpar->codec_id = AV_CODEC_ID_PCM_S32LE_PLANAR; break;
default:
- av_log(s, AV_LOG_WARNING,
- "only 16-, 20-, 24- and 32-bit PCM currently supported\n");
+ avpriv_report_missing_feature(s, "PCM not 16-, 20-, 24- or 32-bits");
return AVERROR_PATCHWELCOME;
}
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2e2a814b4f..3ec1636584 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2548,10 +2548,9 @@ static int matroska_read_header(AVFormatContext *s)
ebml.max_size > sizeof(uint64_t) ||
ebml.id_length > sizeof(uint32_t) ||
ebml.doctype_version > 3) {
- av_log(matroska->ctx, AV_LOG_ERROR,
- "EBML header using unsupported features\n"
- "(EBML version %"PRIu64", doctype %s, doc version %"PRIu64")\n",
- ebml.version, ebml.doctype, ebml.doctype_version);
+ avpriv_report_missing_feature(matroska->ctx,
+ "EBML version %"PRIu64", doctype %s, doc version %"PRIu64,
+ ebml.version, ebml.doctype, ebml.doctype_version);
ebml_free(ebml_syntax, &ebml);
return AVERROR_PATCHWELCOME;
} else if (ebml.doctype_version == 3) {
diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c
index 180c554c00..f280faa5cc 100644
--- a/libavformat/mpc8.c
+++ b/libavformat/mpc8.c
@@ -239,7 +239,7 @@ static int mpc8_read_header(AVFormatContext *s)
avio_skip(pb, 4); //CRC
c->ver = avio_r8(pb);
if(c->ver != 8){
- av_log(s, AV_LOG_ERROR, "Unknown stream version %d\n", c->ver);
+ avpriv_report_missing_feature(s, "Stream version %d", c->ver);
return AVERROR_PATCHWELCOME;
}
c->samples = ffio_read_varlen(pb);
diff --git a/libavformat/rsoenc.c b/libavformat/rsoenc.c
index 60ebac8ebd..e34e2c64e2 100644
--- a/libavformat/rsoenc.c
+++ b/libavformat/rsoenc.c
@@ -50,7 +50,7 @@ static int rso_write_header(AVFormatContext *s)
}
if (par->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV) {
- av_log(s, AV_LOG_ERROR, "ADPCM in RSO not implemented\n");
+ avpriv_report_missing_feature(s, "ADPCM in RSO");
return AVERROR_PATCHWELCOME;
}
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index 05dd17205c..465d9bc292 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -247,7 +247,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
type &= ~0x40;
}
if (type > 1) {
- av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %"PRIu8"\n", type);
+ avpriv_report_missing_feature(ctx, "RTP/JPEG type %"PRIu8, type);
return AVERROR_PATCHWELCOME;
}
diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c
index e51f0cdae8..a25c07fe52 100644
--- a/libavformat/rtpdec_latm.c
+++ b/libavformat/rtpdec_latm.c
@@ -109,9 +109,9 @@ static int parse_fmtp_config(AVStream *st, const char *value)
num_layers = get_bits(&gb, 3);
if (audio_mux_version != 0 || same_time_framing != 1 || num_programs != 0 ||
num_layers != 0) {
- av_log(NULL, AV_LOG_WARNING, "Unsupported LATM config (%d,%d,%d,%d)\n",
- audio_mux_version, same_time_framing,
- num_programs, num_layers);
+ avpriv_report_missing_feature(NULL, "LATM config (%d,%d,%d,%d)",
+ audio_mux_version, same_time_framing,
+ num_programs, num_layers);
ret = AVERROR_PATCHWELCOME;
goto end;
}
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index e1b79903f6..43de6ce343 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -108,15 +108,14 @@ static int xiph_handle_packet(AVFormatContext *ctx, PayloadContext *data,
}
if (ident != data->ident) {
- av_log(ctx, AV_LOG_ERROR,
- "Unimplemented Xiph SDP configuration change detected\n");
+ avpriv_report_missing_feature(ctx, "Xiph SDP configuration change");
return AVERROR_PATCHWELCOME;
}
if (tdt) {
- av_log(ctx, AV_LOG_ERROR,
- "Unimplemented RTP Xiph packet settings (%d,%d,%d)\n",
- fragmented, tdt, num_pkts);
+ avpriv_report_missing_feature(ctx,
+ "RTP Xiph packet settings (%d,%d,%d)",
+ fragmented, tdt, num_pkts);
return AVERROR_PATCHWELCOME;
}
@@ -246,9 +245,8 @@ parse_packed_headers(AVFormatContext *s,
length2 = get_base128(&packed_headers, packed_headers_end);
if (num_packed != 1 || num_headers > 3) {
- av_log(s, AV_LOG_ERROR,
- "Unimplemented number of headers: %u packed headers, %u headers\n",
- num_packed, num_headers);
+ avpriv_report_missing_feature(s, "%u packed headers, %u headers",
+ num_packed, num_headers);
return AVERROR_PATCHWELCOME;
}
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index c6292c5543..261e970b75 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1340,8 +1340,7 @@ static int rtsp_send_cmd_with_content_async(AVFormatContext *s,
ffurl_write(rt->rtsp_hd_out, out_buf, strlen(out_buf));
if (send_content_length > 0 && send_content) {
if (rt->control_transport == RTSP_MODE_TUNNEL) {
- av_log(s, AV_LOG_ERROR, "tunneling of RTSP requests "
- "with content data not supported\n");
+ avpriv_report_missing_feature(s, "Tunneling of RTSP requests with content data");
return AVERROR_PATCHWELCOME;
}
ffurl_write(rt->rtsp_hd_out, send_content, send_content_length);
diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c
index daf1c1f87c..b47ec123e8 100644
--- a/libavformat/spdifenc.c
+++ b/libavformat/spdifenc.c
@@ -470,7 +470,8 @@ static int spdif_write_header(AVFormatContext *s)
return AVERROR(ENOMEM);
break;
default:
- av_log(s, AV_LOG_ERROR, "codec not supported\n");
+ avpriv_report_missing_feature(s, "Codec %d",
+ s->streams[0]->codecpar->codec_id);
return AVERROR_PATCHWELCOME;
}
return 0;
diff --git a/libavformat/wvdec.c b/libavformat/wvdec.c
index 261fcaf35e..82526563ec 100644
--- a/libavformat/wvdec.c
+++ b/libavformat/wvdec.c
@@ -98,7 +98,8 @@ static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb)
}
if (wc->header.version < 0x402 || wc->header.version > 0x410) {
- av_log(ctx, AV_LOG_ERROR, "Unsupported version %03X\n", wc->header.version);
+ avpriv_report_missing_feature(ctx, "WV version 0x%03X",
+ wc->header.version);
return AVERROR_PATCHWELCOME;
}