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
4648fe63
Commit
4648fe63
authored
Mar 14, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: remove now pointless variables.
parent
e06d2dfc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
avconv.c
avconv.c
+2
-10
No files found.
avconv.c
View file @
4648fe63
...
...
@@ -216,8 +216,6 @@ typedef struct OutputStream {
/* video only */
int
video_resample
;
AVFrame
pict_tmp
;
/* temporary image for resampling */
struct
SwsContext
*
img_resample_ctx
;
/* for image resampling */
int
resample_height
;
int
resample_width
;
int
resample_pix_fmt
;
...
...
@@ -1314,7 +1312,6 @@ static void do_video_out(AVFormatContext *s,
int
*
frame_size
,
float
quality
)
{
int
nb_frames
,
i
,
ret
,
format_video_sync
;
AVFrame
*
final_picture
;
AVCodecContext
*
enc
;
double
sync_ipts
,
delta
;
...
...
@@ -1364,8 +1361,6 @@ static void do_video_out(AVFormatContext *s,
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"*** %d dup!
\n
"
,
nb_frames
-
1
);
}
final_picture
=
in_picture
;
if
(
!
ost
->
frame_number
)
ost
->
first_pts
=
ost
->
sync_opts
;
...
...
@@ -1386,7 +1381,7 @@ static void do_video_out(AVFormatContext *s,
method. */
enc
->
coded_frame
->
interlaced_frame
=
in_picture
->
interlaced_frame
;
enc
->
coded_frame
->
top_field_first
=
in_picture
->
top_field_first
;
pkt
.
data
=
(
uint8_t
*
)
final
_picture
;
pkt
.
data
=
(
uint8_t
*
)
in
_picture
;
pkt
.
size
=
sizeof
(
AVPicture
);
pkt
.
pts
=
av_rescale_q
(
ost
->
sync_opts
,
enc
->
time_base
,
ost
->
st
->
time_base
);
pkt
.
flags
|=
AV_PKT_FLAG_KEY
;
...
...
@@ -1396,7 +1391,7 @@ static void do_video_out(AVFormatContext *s,
int
got_packet
;
AVFrame
big_picture
;
big_picture
=
*
final
_picture
;
big_picture
=
*
in
_picture
;
/* better than nothing: use input picture interlaced
settings */
big_picture
.
interlaced_frame
=
in_picture
->
interlaced_frame
;
...
...
@@ -2793,10 +2788,7 @@ static int transcode(OutputFile *output_files,
av_fifo_free
(
ost
->
fifo
);
/* works even if fifo is not
initialized but set to zero */
av_freep
(
&
ost
->
st
->
codec
->
subtitle_header
);
av_free
(
ost
->
pict_tmp
.
data
[
0
]);
av_free
(
ost
->
forced_kf_pts
);
if
(
ost
->
video_resample
)
sws_freeContext
(
ost
->
img_resample_ctx
);
if
(
ost
->
resample
)
audio_resample_close
(
ost
->
resample
);
if
(
ost
->
reformat_ctx
)
...
...
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