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
693a11b8
Commit
693a11b8
authored
Oct 26, 2017
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: Remove AVFMT_RAWPICTURE.
Deprecated since October 2015.
parent
00bfe850
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
47 deletions
+0
-47
ffmpeg.c
fftools/ffmpeg.c
+0
-40
avformat.h
libavformat/avformat.h
+0
-4
version.h
libavformat/version.h
+0
-3
No files found.
fftools/ffmpeg.c
View file @
693a11b8
...
...
@@ -1199,24 +1199,6 @@ static void do_video_out(OutputFile *of,
#endif
return
;
#if FF_API_LAVF_FMT_RAWPICTURE
if
(
of
->
ctx
->
oformat
->
flags
&
AVFMT_RAWPICTURE
&&
enc
->
codec
->
id
==
AV_CODEC_ID_RAWVIDEO
)
{
/* raw pictures are written as AVPicture structure to
avoid any copies. We support temporarily the older
method. */
if
(
in_picture
->
interlaced_frame
)
mux_par
->
field_order
=
in_picture
->
top_field_first
?
AV_FIELD_TB
:
AV_FIELD_BT
;
else
mux_par
->
field_order
=
AV_FIELD_PROGRESSIVE
;
pkt
.
data
=
(
uint8_t
*
)
in_picture
;
pkt
.
size
=
sizeof
(
AVPicture
);
pkt
.
pts
=
av_rescale_q
(
in_picture
->
pts
,
enc
->
time_base
,
ost
->
mux_timebase
);
pkt
.
flags
|=
AV_PKT_FLAG_KEY
;
output_packet
(
of
,
&
pkt
,
ost
,
0
);
}
else
#endif
{
int
forced_keyframe
=
0
;
double
pts_time
;
...
...
@@ -1897,10 +1879,6 @@ static void flush_encoders(void)
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_AUDIO
&&
enc
->
frame_size
<=
1
)
continue
;
#if FF_API_LAVF_FMT_RAWPICTURE
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
(
of
->
ctx
->
oformat
->
flags
&
AVFMT_RAWPICTURE
)
&&
enc
->
codec
->
id
==
AV_CODEC_ID_RAWVIDEO
)
continue
;
#endif
if
(
enc
->
codec_type
!=
AVMEDIA_TYPE_VIDEO
&&
enc
->
codec_type
!=
AVMEDIA_TYPE_AUDIO
)
continue
;
...
...
@@ -1991,7 +1969,6 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
InputFile
*
f
=
input_files
[
ist
->
file_index
];
int64_t
start_time
=
(
of
->
start_time
==
AV_NOPTS_VALUE
)
?
0
:
of
->
start_time
;
int64_t
ost_tb_start_time
=
av_rescale_q
(
start_time
,
AV_TIME_BASE_Q
,
ost
->
mux_timebase
);
AVPicture
pict
;
AVPacket
opkt
;
av_init_packet
(
&
opkt
);
...
...
@@ -2079,23 +2056,6 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
}
av_copy_packet_side_data
(
&
opkt
,
pkt
);
#if FF_API_LAVF_FMT_RAWPICTURE
if
(
ost
->
st
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
ost
->
st
->
codecpar
->
codec_id
==
AV_CODEC_ID_RAWVIDEO
&&
(
of
->
ctx
->
oformat
->
flags
&
AVFMT_RAWPICTURE
))
{
/* store AVPicture in AVPacket, as expected by the output format */
int
ret
=
avpicture_fill
(
&
pict
,
opkt
.
data
,
ost
->
st
->
codecpar
->
format
,
ost
->
st
->
codecpar
->
width
,
ost
->
st
->
codecpar
->
height
);
if
(
ret
<
0
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"avpicture_fill failed: %s
\n
"
,
av_err2str
(
ret
));
exit_program
(
1
);
}
opkt
.
data
=
(
uint8_t
*
)
&
pict
;
opkt
.
size
=
sizeof
(
AVPicture
);
opkt
.
flags
|=
AV_PKT_FLAG_KEY
;
}
#endif
output_packet
(
of
,
&
opkt
,
ost
,
0
);
}
...
...
libavformat/avformat.h
View file @
693a11b8
...
...
@@ -465,10 +465,6 @@ typedef struct AVProbeData {
#define AVFMT_NOFILE 0x0001
#define AVFMT_NEEDNUMBER 0x0002
/**< Needs '%d' in filename. */
#define AVFMT_SHOW_IDS 0x0008
/**< Show format stream IDs numbers. */
#if FF_API_LAVF_FMT_RAWPICTURE
#define AVFMT_RAWPICTURE 0x0020
/**< Format wants AVPicture structure for
raw picture data. @deprecated Not used anymore */
#endif
#define AVFMT_GLOBALHEADER 0x0040
/**< Format wants global header. */
#define AVFMT_NOTIMESTAMPS 0x0080
/**< Format does not need / have any timestamps. */
#define AVFMT_GENERIC_INDEX 0x0100
/**< Use generic index building code. */
...
...
libavformat/version.h
View file @
693a11b8
...
...
@@ -55,9 +55,6 @@
* at once through the bump. This improves the git bisect-ability of the change.
*
*/
#ifndef FF_API_LAVF_FMT_RAWPICTURE
#define FF_API_LAVF_FMT_RAWPICTURE (LIBAVFORMAT_VERSION_MAJOR < 58)
#endif
#ifndef FF_API_COMPUTE_PKT_FIELDS2
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 59)
#endif
...
...
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