Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
1cc119a0
Commit
1cc119a0
authored
Oct 19, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: p_buffer_out was unused
parent
bc6e1b20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+0
-10
No files found.
modules/codec/avcodec/encoder.c
View file @
1cc119a0
...
...
@@ -97,7 +97,6 @@ struct encoder_sys_t
* Common properties
*/
char
*
p_buffer
;
uint8_t
*
p_buffer_out
;
size_t
i_buffer_out
;
/*
...
...
@@ -304,7 +303,6 @@ int OpenEncoder( vlc_object_t *p_this )
p_enc
->
pf_encode_audio
=
EncodeAudio
;
p_sys
->
p_buffer
=
NULL
;
p_sys
->
p_buffer_out
=
NULL
;
p_sys
->
i_buffer_out
=
0
;
#if LIBAVCODEC_VERSION_MAJOR < 54
...
...
@@ -468,7 +466,6 @@ int OpenEncoder( vlc_object_t *p_this )
p_enc
->
fmt_in
.
video
.
i_sar_num
,
p_enc
->
fmt_in
.
video
.
i_sar_den
,
1
<<
30
);
p_sys
->
p_buffer_out
=
NULL
;
p_enc
->
fmt_in
.
i_codec
=
VLC_CODEC_I420
;
p_enc
->
fmt_in
.
video
.
i_chroma
=
p_enc
->
fmt_in
.
i_codec
;
...
...
@@ -832,11 +829,6 @@ int OpenEncoder( vlc_object_t *p_this )
p_sys
->
i_buffer_out
=
8
*
AVCODEC_MAX_AUDIO_FRAME_SIZE
;
else
p_sys
->
i_buffer_out
=
p_sys
->
i_frame_size
*
p_sys
->
i_sample_bytes
;
p_sys
->
p_buffer_out
=
malloc
(
p_sys
->
i_buffer_out
);
if
(
p_sys
->
p_buffer_out
==
NULL
)
{
goto
error
;
}
}
msg_Dbg
(
p_enc
,
"found encoder %s"
,
psz_namecodec
);
...
...
@@ -845,7 +837,6 @@ int OpenEncoder( vlc_object_t *p_this )
error:
free
(
p_enc
->
fmt_out
.
p_extra
);
free
(
p_sys
->
p_buffer
);
free
(
p_sys
->
p_buffer_out
);
free
(
p_sys
);
return
VLC_ENOMEM
;
}
...
...
@@ -1154,7 +1145,6 @@ void CloseEncoder( vlc_object_t *p_this )
av_free
(
p_sys
->
p_context
);
free
(
p_sys
->
p_buffer
);
free
(
p_sys
->
p_buffer_out
);
free
(
p_sys
);
}
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