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
eea8c08f
Commit
eea8c08f
authored
Apr 30, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup & memleak fix
Originally committed as revision 3095 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
60f41d13
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
10 additions
and
54 deletions
+10
-54
4xm.c
libavcodec/4xm.c
+0
-2
asv1.c
libavcodec/asv1.c
+0
-2
avcodec.h
libavcodec/avcodec.h
+0
-1
cljr.c
libavcodec/cljr.c
+1
-8
dv.c
libavcodec/dv.c
+2
-8
ffv1.c
libavcodec/ffv1.c
+1
-17
huffyuv.c
libavcodec/huffyuv.c
+0
-2
mdec.c
libavcodec/mdec.c
+0
-2
mjpeg.c
libavcodec/mjpeg.c
+1
-2
mpegvideo.c
libavcodec/mpegvideo.c
+0
-1
utils.c
libavcodec/utils.c
+4
-1
vcr1.c
libavcodec/vcr1.c
+1
-8
No files found.
libavcodec/4xm.c
View file @
eea8c08f
...
...
@@ -738,8 +738,6 @@ static int decode_end(AVCodecContext *avctx){
}
free_vlc
(
&
f
->
pre_vlc
);
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
...
...
libavcodec/asv1.c
View file @
eea8c08f
...
...
@@ -613,8 +613,6 @@ static int decode_end(AVCodecContext *avctx){
av_freep
(
&
a
->
picture
.
qscale_table
);
a
->
bitstream_buffer_size
=
0
;
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
...
...
libavcodec/avcodec.h
View file @
eea8c08f
...
...
@@ -1934,7 +1934,6 @@ AVFrame *avcodec_alloc_frame(void);
int
avcodec_default_get_buffer
(
AVCodecContext
*
s
,
AVFrame
*
pic
);
void
avcodec_default_release_buffer
(
AVCodecContext
*
s
,
AVFrame
*
pic
);
void
avcodec_default_free_buffers
(
AVCodecContext
*
s
);
int
avcodec_thread_init
(
AVCodecContext
*
s
,
int
thread_count
);
void
avcodec_thread_free
(
AVCodecContext
*
s
);
...
...
libavcodec/cljr.c
View file @
eea8c08f
...
...
@@ -133,13 +133,6 @@ static int encode_init(AVCodecContext *avctx){
return
0
;
}
static
int
decode_end
(
AVCodecContext
*
avctx
){
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
AVCodec
cljr_decoder
=
{
"cljr"
,
CODEC_TYPE_VIDEO
,
...
...
@@ -147,7 +140,7 @@ AVCodec cljr_decoder = {
sizeof
(
CLJRContext
),
decode_init
,
NULL
,
decode_end
,
NULL
,
decode_frame
,
CODEC_CAP_DR1
,
};
...
...
libavcodec/dv.c
View file @
eea8c08f
...
...
@@ -235,12 +235,6 @@ static int dvvideo_init(AVCodecContext *avctx)
return
0
;
}
static
int
dvvideo_end
(
AVCodecContext
*
avctx
)
{
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
// #define VLC_DEBUG
// #define printf(...) av_log(NULL, AV_LOG_ERROR, __VA_ARGS__)
...
...
@@ -954,7 +948,7 @@ AVCodec dvvideo_encoder = {
sizeof
(
DVVideoContext
),
dvvideo_init
,
dvvideo_encode_frame
,
dvvideo_end
,
NULL
,
NULL
,
CODEC_CAP_DR1
,
NULL
...
...
@@ -967,7 +961,7 @@ AVCodec dvvideo_decoder = {
sizeof
(
DVVideoContext
),
dvvideo_init
,
NULL
,
dvvideo_end
,
NULL
,
dvvideo_decode_frame
,
CODEC_CAP_DR1
,
NULL
...
...
libavcodec/ffv1.c
View file @
eea8c08f
...
...
@@ -1018,22 +1018,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
return
bytes_read
;
}
static
int
decode_end
(
AVCodecContext
*
avctx
)
{
FFV1Context
*
s
=
avctx
->
priv_data
;
int
i
;
if
(
avctx
->
get_buffer
==
avcodec_default_get_buffer
){
for
(
i
=
0
;
i
<
4
;
i
++
){
av_freep
(
&
s
->
picture
.
base
[
i
]);
s
->
picture
.
data
[
i
]
=
NULL
;
}
av_freep
(
&
s
->
picture
.
opaque
);
}
return
0
;
}
AVCodec
ffv1_decoder
=
{
"ffv1"
,
CODEC_TYPE_VIDEO
,
...
...
@@ -1041,7 +1025,7 @@ AVCodec ffv1_decoder = {
sizeof
(
FFV1Context
),
decode_init
,
NULL
,
decode_end
,
NULL
,
decode_frame
,
CODEC_CAP_DR1
/*| CODEC_CAP_DRAW_HORIZ_BAND*/
,
NULL
...
...
libavcodec/huffyuv.c
View file @
eea8c08f
...
...
@@ -916,8 +916,6 @@ static int decode_end(AVCodecContext *avctx)
for
(
i
=
0
;
i
<
3
;
i
++
){
free_vlc
(
&
s
->
vlc
[
i
]);
}
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
...
...
libavcodec/mdec.c
View file @
eea8c08f
...
...
@@ -257,8 +257,6 @@ static int decode_end(AVCodecContext *avctx){
av_freep
(
&
a
->
picture
.
qscale_table
);
a
->
bitstream_buffer_size
=
0
;
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
...
...
libavcodec/mjpeg.c
View file @
eea8c08f
...
...
@@ -1340,7 +1340,7 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s){
(
h
*
mb_x
+
x
)
*
8
;
if
(
s
->
interlaced
&&
s
->
bottom_field
)
ptr
+=
s
->
linesize
[
c
]
>>
1
;
//
printf(
"%d %d %d %d %d %d %d %d \n", mb_x, mb_y, x, y, c, s->bottom_field, (v * mb_y + y) * 8, (h * mb_x + x) * 8);
//
av_log(NULL, AV_LOG_DEBUG,
"%d %d %d %d %d %d %d %d \n", mb_x, mb_y, x, y, c, s->bottom_field, (v * mb_y + y) * 8, (h * mb_x + x) * 8);
s
->
idct_put
(
ptr
,
s
->
linesize
[
c
],
s
->
block
);
if
(
++
x
==
h
)
{
x
=
0
;
...
...
@@ -2171,7 +2171,6 @@ static int mjpeg_decode_end(AVCodecContext *avctx)
av_free
(
s
->
buffer
);
av_free
(
s
->
qscale_table
);
avcodec_default_free_buffers
(
avctx
);
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
...
...
libavcodec/mpegvideo.c
View file @
eea8c08f
...
...
@@ -847,7 +847,6 @@ void MPV_common_end(MpegEncContext *s)
}
}
av_freep
(
&
s
->
picture
);
avcodec_default_free_buffers
(
s
->
avctx
);
s
->
context_initialized
=
0
;
s
->
last_picture_ptr
=
s
->
next_picture_ptr
=
...
...
libavcodec/utils.c
View file @
eea8c08f
...
...
@@ -29,6 +29,8 @@
#include "mpegvideo.h"
#include <stdarg.h>
static
void
avcodec_default_free_buffers
(
AVCodecContext
*
s
);
void
*
av_mallocz
(
unsigned
int
size
)
{
void
*
ptr
;
...
...
@@ -514,6 +516,7 @@ int avcodec_close(AVCodecContext *avctx)
{
if
(
avctx
->
codec
->
close
)
avctx
->
codec
->
close
(
avctx
);
avcodec_default_free_buffers
(
avctx
);
av_freep
(
&
avctx
->
priv_data
);
avctx
->
codec
=
NULL
;
return
0
;
...
...
@@ -738,7 +741,7 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
avctx
->
codec
->
flush
(
avctx
);
}
void
avcodec_default_free_buffers
(
AVCodecContext
*
s
){
static
void
avcodec_default_free_buffers
(
AVCodecContext
*
s
){
int
i
,
j
;
if
(
s
->
internal_buffer
==
NULL
)
return
;
...
...
libavcodec/vcr1.c
View file @
eea8c08f
...
...
@@ -165,13 +165,6 @@ static int encode_init(AVCodecContext *avctx){
return
0
;
}
static
int
decode_end
(
AVCodecContext
*
avctx
){
avcodec_default_free_buffers
(
avctx
);
return
0
;
}
AVCodec
vcr1_decoder
=
{
"vcr1"
,
CODEC_TYPE_VIDEO
,
...
...
@@ -179,7 +172,7 @@ AVCodec vcr1_decoder = {
sizeof
(
VCR1Context
),
decode_init
,
NULL
,
decode_end
,
NULL
,
decode_frame
,
CODEC_CAP_DR1
,
};
...
...
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