Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
67deba8a
Commit
67deba8a
authored
Dec 16, 2015
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use avpriv_report_missing_feature() where appropriate
parent
59d2b00d
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
73 additions
and
79 deletions
+73
-79
aacdec.c
libavcodec/aacdec.c
+1
-2
alac.c
libavcodec/alac.c
+4
-4
bmp.c
libavcodec/bmp.c
+2
-1
fraps.c
libavcodec/fraps.c
+1
-3
g2meet.c
libavcodec/g2meet.c
+5
-6
g723_1enc.c
libavcodec/g723_1enc.c
+2
-1
h264_ps.c
libavcodec/h264_ps.c
+2
-3
hevc_ps.c
libavcodec/hevc_ps.c
+3
-4
hevc_ps_enc.c
libavcodec/hevc_ps_enc.c
+6
-4
libopenjpegdec.c
libavcodec/libopenjpegdec.c
+1
-1
libopusenc.c
libavcodec/libopusenc.c
+3
-2
mjpegdec.c
libavcodec/mjpegdec.c
+4
-3
opus_silk.c
libavcodec/opus_silk.c
+1
-1
shorten.c
libavcodec/shorten.c
+2
-2
takdec.c
libavcodec/takdec.c
+1
-1
txd.c
libavcodec/txd.c
+3
-4
vp5.c
libavcodec/vp5.c
+1
-1
xwddec.c
libavcodec/xwddec.c
+1
-1
vfwcap.c
libavdevice/vfwcap.c
+1
-2
xcbgrab.c
libavdevice/xcbgrab.c
+1
-1
avienc.c
libavformat/avienc.c
+1
-2
lxfdec.c
libavformat/lxfdec.c
+2
-3
matroskadec.c
libavformat/matroskadec.c
+3
-4
mpc8.c
libavformat/mpc8.c
+1
-1
oggparseopus.c
libavformat/oggparseopus.c
+3
-3
qcp.c
libavformat/qcp.c
+2
-2
rsoenc.c
libavformat/rsoenc.c
+1
-1
rtpdec_jpeg.c
libavformat/rtpdec_jpeg.c
+1
-1
rtpdec_latm.c
libavformat/rtpdec_latm.c
+3
-3
rtpdec_xiph.c
libavformat/rtpdec_xiph.c
+6
-8
rtsp.c
libavformat/rtsp.c
+1
-2
spdifenc.c
libavformat/spdifenc.c
+2
-1
wvdec.c
libavformat/wvdec.c
+2
-1
No files found.
libavcodec/aacdec.c
View file @
67deba8a
...
...
@@ -1246,8 +1246,7 @@ static int decode_ics_info(AACContext *ac, IndividualChannelStream *ics,
return
AVERROR_INVALIDDATA
;
}
else
{
if
(
aot
==
AOT_ER_AAC_LD
)
{
av_log
(
ac
->
avctx
,
AV_LOG_ERROR
,
"LTP in ER AAC LD not yet implemented.
\n
"
);
avpriv_report_missing_feature
(
ac
->
avctx
,
"LTP in ER AAC LD"
);
return
AVERROR_PATCHWELCOME
;
}
if
((
ics
->
ltp
.
present
=
get_bits
(
gb
,
1
)))
...
...
libavcodec/alac.c
View file @
67deba8a
...
...
@@ -266,7 +266,7 @@ static int decode_element(AVCodecContext *avctx, AVFrame *frame, int ch_index,
alac
->
extra_bits
=
get_bits
(
&
alac
->
gb
,
2
)
<<
3
;
bps
=
alac
->
sample_size
-
alac
->
extra_bits
+
channels
-
1
;
if
(
bps
>
32
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"bps is unsupported: %d
\n
"
,
bps
);
av
priv_report_missing_feature
(
avctx
,
"bps %d
"
,
bps
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -424,7 +424,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
break
;
}
if
(
element
>
TYPE_CPE
&&
element
!=
TYPE_LFE
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"syntax element unsupported:
%d"
,
element
);
av
priv_report_missing_feature
(
avctx
,
"Syntax element
%d"
,
element
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -568,8 +568,8 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
avctx
->
channels
=
alac
->
channels
;
}
if
(
avctx
->
channels
>
ALAC_MAX_CHANNELS
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"Unsupported channel count: %d
\n
"
,
avctx
->
channels
);
av
priv_report_missing_feature
(
avctx
,
"Channel count %d
"
,
avctx
->
channels
);
return
AVERROR_PATCHWELCOME
;
}
avctx
->
channel_layout
=
ff_alac_channel_layouts
[
alac
->
channels
-
1
];
...
...
libavcodec/bmp.c
View file @
67deba8a
...
...
@@ -98,7 +98,8 @@ static int bmp_decode_frame(AVCodecContext *avctx,
height
=
bytestream_get_le16
(
&
buf
);
break
;
default:
av_log
(
avctx
,
AV_LOG_ERROR
,
"unsupported BMP file, patch welcome
\n
"
);
avpriv_report_missing_feature
(
avctx
,
"Information header size %u"
,
ihsize
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/fraps.c
View file @
67deba8a
...
...
@@ -163,9 +163,7 @@ static int decode_frame(AVCodecContext *avctx,
prev_pic_bit
=
header
&
(
1U
<<
31
);
/* bit 31 means same as previous pic */
if
(
version
>
5
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"This file is encoded with Fraps version %u. "
"This codec can only decode versions <= 5.
\n
"
,
version
);
avpriv_report_missing_feature
(
avctx
,
"Fraps version %u"
,
version
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/g2meet.c
View file @
67deba8a
...
...
@@ -1424,9 +1424,8 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
}
c
->
compression
=
bytestream2_get_be32
(
&
bc
);
if
(
c
->
compression
!=
2
&&
c
->
compression
!=
3
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unknown compression method %d
\n
"
,
c
->
compression
);
avpriv_report_missing_feature
(
avctx
,
"Compression method %d"
,
c
->
compression
);
return
AVERROR_PATCHWELCOME
;
}
c
->
tile_width
=
bytestream2_get_be32
(
&
bc
);
...
...
@@ -1453,9 +1452,9 @@ static int g2m_decode_frame(AVCodecContext *avctx, void *data,
g_mask
=
bytestream2_get_be32
(
&
bc
);
b_mask
=
bytestream2_get_be32
(
&
bc
);
if
(
r_mask
!=
0xFF0000
||
g_mask
!=
0xFF00
||
b_mask
!=
0xFF
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"Invalid or unsupported bitmasks: R=%"
PRIX32
", G=%"
PRIX32
", B=%"
PRIX32
"
\n
"
,
r_mask
,
g_mask
,
b_mask
);
av
priv_report_missing_feature
(
avctx
,
"Bitmasks: R=%"
PRIX32
", G=%"
PRIX32
", B=%"
PRIX32
,
r_mask
,
g_mask
,
b_mask
);
return
AVERROR_PATCHWELCOME
;
}
}
else
{
...
...
libavcodec/g723_1enc.c
View file @
67deba8a
...
...
@@ -57,7 +57,8 @@ static av_cold int g723_1_encode_init(AVCodecContext *avctx)
if
(
avctx
->
bit_rate
==
6300
)
{
p
->
cur_rate
=
RATE_6300
;
}
else
if
(
avctx
->
bit_rate
==
5300
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Bitrate not supported yet, use 6300
\n
"
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"Use bitrate 6300 instead of 5300.
\n
"
);
avpriv_report_missing_feature
(
avctx
,
"Bitrate 5300"
);
return
AVERROR_PATCHWELCOME
;
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Bitrate not supported, use 6300
\n
"
);
...
...
libavcodec/h264_ps.c
View file @
67deba8a
...
...
@@ -700,9 +700,8 @@ int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avct
sps
=
(
SPS
*
)
ps
->
sps_list
[
pps
->
sps_id
]
->
data
;
if
(
sps
->
bit_depth_luma
>
10
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unimplemented luma bit depth=%d (max=10)
\n
"
,
sps
->
bit_depth_luma
);
avpriv_report_missing_feature
(
avctx
,
"Luma bit depth=%d (max=10)"
,
sps
->
bit_depth_luma
);
ret
=
AVERROR_PATCHWELCOME
;
goto
fail
;
}
...
...
libavcodec/hevc_ps.c
View file @
67deba8a
...
...
@@ -657,13 +657,12 @@ static int map_pixel_format(AVCodecContext *avctx, HEVCSPS *sps)
case
9
:
sps
->
pix_fmt
=
AV_PIX_FMT_YUV420P9
;
break
;
case
10
:
sps
->
pix_fmt
=
AV_PIX_FMT_YUV420P10
;
break
;
default:
av
_log
(
avctx
,
AV_LOG_ERROR
,
"Unsupported bit depth: %d
\n
"
,
sps
->
bit_depth
);
av
priv_report_missing_feature
(
avctx
,
"Bit depth %d
"
,
sps
->
bit_depth
);
return
AVERROR_PATCHWELCOME
;
}
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"non-4:2:0 support is currently unspecified.
\n
"
);
avpriv_report_missing_feature
(
avctx
,
"Non-4:2:0 support"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/hevc_ps_enc.c
View file @
67deba8a
...
...
@@ -90,9 +90,10 @@ int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id,
put_bits
(
&
pb
,
6
,
vps
->
vps_max_layer_id
);
set_ue_golomb
(
&
pb
,
vps
->
vps_num_layer_sets
-
1
);
// writing layer_id_included_flag not supported
if
(
vps
->
vps_num_layer_sets
>
1
)
if
(
vps
->
vps_num_layer_sets
>
1
)
{
avpriv_report_missing_feature
(
NULL
,
"Writing layer_id_included_flag"
);
return
AVERROR_PATCHWELCOME
;
}
put_bits
(
&
pb
,
1
,
vps
->
vps_timing_info_present_flag
);
if
(
vps
->
vps_timing_info_present_flag
)
{
...
...
@@ -102,9 +103,10 @@ int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id,
if
(
vps
->
vps_poc_proportional_to_timing_flag
)
set_ue_golomb
(
&
pb
,
vps
->
vps_num_ticks_poc_diff_one
-
1
);
// writing HRD parameters not supported
if
(
vps
->
vps_num_hrd_parameters
)
if
(
vps
->
vps_num_hrd_parameters
)
{
avpriv_report_missing_feature
(
NULL
,
"Writing HRD parameters"
);
return
AVERROR_PATCHWELCOME
;
}
}
put_bits
(
&
pb
,
1
,
0
);
// extension flag
...
...
libavcodec/libopenjpegdec.c
View file @
67deba8a
...
...
@@ -396,7 +396,7 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
}
break
;
default:
av
_log
(
avctx
,
AV_LOG_ERROR
,
"unsupported pixel size %d
\n
"
,
pixel_size
);
av
priv_report_missing_feature
(
avctx
,
"Pixel size %d
"
,
pixel_size
);
ret
=
AVERROR_PATCHWELCOME
;
goto
done
;
}
...
...
libavcodec/libopusenc.c
View file @
67deba8a
...
...
@@ -164,8 +164,9 @@ static int av_cold libopus_encode_init(AVCodecContext *avctx)
/* FIXME: Opus can handle up to 255 channels. However, the mapping for
* anything greater than 8 is undefined. */
if
(
avctx
->
channels
>
8
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Channel layout undefined for %d channels.
\n
"
,
avctx
->
channels
);
avpriv_report_missing_feature
(
avctx
,
"Undefined channel layout for %d channels"
,
avctx
->
channels
);
return
AVERROR_PATCHWELCOME
;
}
if
(
!
avctx
->
bit_rate
)
{
...
...
libavcodec/mjpegdec.c
View file @
67deba8a
...
...
@@ -373,7 +373,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
s
->
avctx
->
color_range
=
s
->
cs_itu601
?
AVCOL_RANGE_MPEG
:
AVCOL_RANGE_JPEG
;
break
;
default:
av
_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Unhandled pixel format 0x%x
\n
"
,
pix_fmt_id
);
av
priv_report_missing_feature
(
s
->
avctx
,
"Pixel format 0x%x
"
,
pix_fmt_id
);
return
AVERROR_PATCHWELCOME
;
}
if
(
s
->
ls
)
{
...
...
@@ -1035,8 +1035,9 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask,
len
=
get_bits
(
&
s
->
gb
,
16
);
nb_components
=
get_bits
(
&
s
->
gb
,
8
);
if
(
nb_components
==
0
||
nb_components
>
MAX_COMPONENTS
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"decode_sos: nb_components (%d) unsupported
\n
"
,
nb_components
);
avpriv_report_missing_feature
(
s
->
avctx
,
"decode_sos: nb_components (%d)"
,
nb_components
);
return
AVERROR_PATCHWELCOME
;
}
if
(
len
!=
6
+
2
*
nb_components
)
{
...
...
libavcodec/opus_silk.c
View file @
67deba8a
...
...
@@ -1530,7 +1530,7 @@ int ff_silk_decode_superframe(SilkContext *s, OpusRangeCoder *rc,
redundancy
[
i
]
=
opus_rc_p2model
(
rc
,
1
);
if
(
redundancy
[
i
])
{
av
_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"LBRR frames present; this is unsupported
\n
"
);
av
priv_report_missing_feature
(
s
->
avctx
,
"LBRR frames
"
);
return
AVERROR_PATCHWELCOME
;
}
}
...
...
libavcodec/shorten.c
View file @
67deba8a
...
...
@@ -515,8 +515,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
case
FN_BLOCKSIZE
:
{
unsigned
blocksize
=
get_uint
(
s
,
av_log2
(
s
->
blocksize
));
if
(
blocksize
>
s
->
blocksize
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"Increasing block size is not supported
\n
"
);
av
priv_report_missing_feature
(
avctx
,
"Increasing block size
"
);
return
AVERROR_PATCHWELCOME
;
}
if
(
!
blocksize
||
blocksize
>
MAX_BLOCKSIZE
)
{
...
...
libavcodec/takdec.c
View file @
67deba8a
...
...
@@ -702,7 +702,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
if
(
s
->
ti
.
codec
!=
TAK_CODEC_MONO_STEREO
&&
s
->
ti
.
codec
!=
TAK_CODEC_MULTICHANNEL
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"unsupported codec: %d
\n
"
,
s
->
ti
.
codec
);
av
priv_report_missing_feature
(
avctx
,
"TAK codec type %d
"
,
s
->
ti
.
codec
);
return
AVERROR_PATCHWELCOME
;
}
if
(
s
->
ti
.
data_type
)
{
...
...
libavcodec/txd.c
View file @
67deba8a
...
...
@@ -56,8 +56,7 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
flags
=
bytestream2_get_byte
(
&
gb
);
if
(
version
<
8
||
version
>
9
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"texture data version %u is unsupported
\n
"
,
version
);
avpriv_report_missing_feature
(
avctx
,
"Texture data version %u"
,
version
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -66,7 +65,7 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
}
else
if
(
depth
==
16
||
depth
==
32
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_RGBA
;
}
else
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"depth of %u is unsupported
\n
"
,
depth
);
av
priv_report_missing_feature
(
avctx
,
"Color depth of %u
"
,
depth
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -143,7 +142,7 @@ static int txd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
return
avpkt
->
size
;
unsupported:
av
_log
(
avctx
,
AV_LOG_ERROR
,
"unsupported d3d format (%08x)
\n
"
,
d3d_format
);
av
priv_report_missing_feature
(
avctx
,
"d3d format (%08x)
"
,
d3d_format
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/vp5.c
View file @
67deba8a
...
...
@@ -51,7 +51,7 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
return
AVERROR_INVALIDDATA
;
vp56_rac_gets
(
c
,
2
);
if
(
vp56_rac_get
(
c
))
{
av
_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"interlacing not supported
\n
"
);
av
priv_report_missing_feature
(
s
->
avctx
,
"Interlacing
"
);
return
AVERROR_PATCHWELCOME
;
}
rows
=
vp56_rac_gets
(
c
,
8
);
/* number of stored macroblock rows */
...
...
libavcodec/xwddec.c
View file @
67deba8a
...
...
@@ -147,7 +147,7 @@ static int xwd_decode_frame(AVCodecContext *avctx, void *data,
}
if
(
pixformat
!=
XWD_Z_PIXMAP
)
{
av
_log
(
avctx
,
AV_LOG_ERROR
,
"pixmap format %"
PRIu32
" unsupported
\n
"
,
pixformat
);
av
priv_report_missing_feature
(
avctx
,
"Pixmap format %"
PRIu32
,
pixformat
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavdevice/vfwcap.c
View file @
67deba8a
...
...
@@ -383,8 +383,7 @@ static int vfw_read_header(AVFormatContext *s)
if
(
par
->
format
==
AV_PIX_FMT_NONE
)
{
par
->
codec_id
=
vfw_codecid
(
biCompression
);
if
(
par
->
codec_id
==
AV_CODEC_ID_NONE
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown compression type. "
"Please report verbose (-v 9) debug information.
\n
"
);
avpriv_report_missing_feature
(
s
,
"This compression type"
);
vfw_read_close
(
s
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavdevice/xcbgrab.c
View file @
67deba8a
...
...
@@ -500,7 +500,7 @@ static int pixfmt_from_pixmap_format(AVFormatContext *s, int depth,
fmt
++
;
}
av
_log
(
s
,
AV_LOG_ERROR
,
"Pixmap format not mappable.
\n
"
);
av
priv_report_missing_feature
(
s
,
"Mapping this pixmap format
"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavformat/avienc.c
View file @
67deba8a
...
...
@@ -225,8 +225,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
:
...
...
libavformat/lxfdec.c
View file @
67deba8a
...
...
@@ -180,7 +180,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
"
);
av
priv_report_missing_feature
(
s
,
"Not tightly packed PCM
"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -190,8 +190,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
;
}
...
...
libavformat/matroskadec.c
View file @
67deba8a
...
...
@@ -1947,10 +1947,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
;
}
...
...
libavformat/mpc8.c
View file @
67deba8a
...
...
@@ -228,7 +228,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
);
av
priv_report_missing_feature
(
s
,
"Stream version %d
"
,
c
->
ver
);
return
AVERROR_PATCHWELCOME
;
}
c
->
samples
=
ffio_read_varlen
(
pb
);
...
...
libavformat/oggparseopus.c
View file @
67deba8a
...
...
@@ -123,9 +123,9 @@ static int opus_packet(AVFormatContext *avf, int idx)
skip
=
FFMIN
(
skip
,
os
->
pduration
);
if
(
skip
>
0
)
{
os
->
pduration
=
skip
<
os
->
pduration
?
os
->
pduration
-
skip
:
1
;
av
_log
(
avf
,
AV_LOG_WARNING
,
"Last packet is truncated to %d (because of unimplemented end trim support).
\n
"
,
os
->
pduration
);
av
priv_report_missing_feature
(
avf
,
"Last packet truncated to %u since end trim support
"
,
os
->
pduration
);
return
AVERROR_PATCHWELCOME
;
}
}
...
...
libavformat/qcp.c
View file @
67deba8a
...
...
@@ -102,10 +102,10 @@ static int qcp_read_header(AVFormatContext *s)
if
(
is_qcelp_13k_guid
(
buf
))
{
st
->
codecpar
->
codec_id
=
AV_CODEC_ID_QCELP
;
}
else
if
(
!
memcmp
(
buf
,
guid_evrc
,
16
))
{
av
_log
(
s
,
AV_LOG_ERROR
,
"EVRC codec is not supported.
\n
"
);
av
priv_report_missing_feature
(
s
,
"EVRC codec
"
);
return
AVERROR_PATCHWELCOME
;
}
else
if
(
!
memcmp
(
buf
,
guid_smv
,
16
))
{
av
_log
(
s
,
AV_LOG_ERROR
,
"SMV codec is not supported.
\n
"
);
av
priv_report_missing_feature
(
s
,
"SMV codec
"
);
return
AVERROR_PATCHWELCOME
;
}
else
{
av_log
(
s
,
AV_LOG_ERROR
,
"Unknown codec GUID.
\n
"
);
...
...
libavformat/rsoenc.c
View file @
67deba8a
...
...
@@ -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
"
);
av
priv_report_missing_feature
(
s
,
"ADPCM in RSO
"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavformat/rtpdec_jpeg.c
View file @
67deba8a
...
...
@@ -230,7 +230,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
len
-=
8
;
if
(
type
>
1
)
{
av
_log
(
ctx
,
AV_LOG_ERROR
,
"Unimplemented RTP/JPEG type %"
PRIu8
"
\n
"
,
type
);
av
priv_report_missing_feature
(
ctx
,
"RTP/JPEG type %"
PRIu8
,
type
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavformat/rtpdec_latm.c
View file @
67deba8a
...
...
@@ -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
);
av
priv_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
;
}
...
...
libavformat/rtpdec_xiph.c
View file @
67deba8a
...
...
@@ -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
);
av
priv_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
;
}
...
...
libavformat/rtsp.c
View file @
67deba8a
...
...
@@ -1333,8 +1333,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
);
...
...
libavformat/spdifenc.c
View file @
67deba8a
...
...
@@ -469,7 +469,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
;
...
...
libavformat/wvdec.c
View file @
67deba8a
...
...
@@ -95,7 +95,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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment