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
53db1cae
Commit
53db1cae
authored
May 21, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data_size = 0 cleanup
Originally committed as revision 3146 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5da42be1
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
2 additions
and
57 deletions
+2
-57
4xm.c
libavcodec/4xm.c
+0
-2
a52dec.c
libavcodec/a52dec.c
+0
-1
ac3dec.c
libavcodec/ac3dec.c
+0
-1
adpcm.c
libavcodec/adpcm.c
+0
-2
amr.c
libavcodec/amr.c
+0
-3
asv1.c
libavcodec/asv1.c
+0
-2
cljr.c
libavcodec/cljr.c
+0
-2
cyuv.c
libavcodec/cyuv.c
+0
-2
dv.c
libavcodec/dv.c
+0
-1
ffv1.c
libavcodec/ffv1.c
+0
-2
flac.c
libavcodec/flac.c
+0
-2
h263dec.c
libavcodec/h263dec.c
+0
-2
h264.c
libavcodec/h264.c
+0
-2
huffyuv.c
libavcodec/huffyuv.c
+0
-2
indeo3.c
libavcodec/indeo3.c
+0
-1
mace.c
libavcodec/mace.c
+0
-1
mjpeg.c
libavcodec/mjpeg.c
+0
-6
mpeg12.c
libavcodec/mpeg12.c
+0
-2
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+0
-1
oggvorbis.c
libavcodec/oggvorbis.c
+0
-1
raw.c
libavcodec/raw.c
+0
-1
roqvideo.c
libavcodec/roqvideo.c
+0
-2
rv10.c
libavcodec/rv10.c
+0
-3
svq1.c
libavcodec/svq1.c
+0
-4
svq3.c
libavcodec/svq3.c
+0
-2
truemotion1.c
libavcodec/truemotion1.c
+0
-2
utils.c
libavcodec/utils.c
+2
-0
vcr1.c
libavcodec/vcr1.c
+0
-2
vmdav.c
libavcodec/vmdav.c
+0
-1
vp3.c
libavcodec/vp3.c
+0
-2
No files found.
libavcodec/4xm.c
View file @
53db1cae
...
...
@@ -600,8 +600,6 @@ static int decode_frame(AVCodecContext *avctx,
AVFrame
*
p
,
temp
;
int
i
,
frame_4cc
,
frame_size
;
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
)
{
return
0
;
...
...
libavcodec/a52dec.c
View file @
53db1cae
...
...
@@ -160,7 +160,6 @@ static int a52_decode_frame(AVCodecContext *avctx,
2
,
1
,
2
,
3
,
3
,
4
,
4
,
5
};
*
data_size
=
0
;
buf_ptr
=
buf
;
while
(
buf_size
>
0
)
{
len
=
s
->
inbuf_ptr
-
s
->
inbuf
;
...
...
libavcodec/ac3dec.c
View file @
53db1cae
...
...
@@ -92,7 +92,6 @@ static int ac3_decode_frame(AVCodecContext *avctx,
2
,
1
,
2
,
3
,
3
,
4
,
4
,
5
};
*
data_size
=
0
;
buf_ptr
=
buf
;
while
(
buf_size
>
0
)
{
len
=
s
->
inbuf_ptr
-
s
->
inbuf
;
...
...
libavcodec/adpcm.c
View file @
53db1cae
...
...
@@ -568,7 +568,6 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
if
(
st
)
{
/* handle stereo interlacing */
c
->
channel
=
(
channel
+
1
)
%
2
;
/* we get one packet for left, then one for right data */
if
(
channel
==
1
)
{
/* wait for the other packet before outputing anything */
*
data_size
=
0
;
return
src
-
buf
;
}
}
...
...
@@ -842,7 +841,6 @@ static int adpcm_decode_frame(AVCodecContext *avctx,
}
break
;
default:
*
data_size
=
0
;
return
-
1
;
}
*
data_size
=
(
uint8_t
*
)
samples
-
(
uint8_t
*
)
data
;
...
...
libavcodec/amr.c
View file @
53db1cae
...
...
@@ -221,7 +221,6 @@ static int amr_nb_decode_frame(AVCodecContext * avctx,
Word16
serial
[
SERIAL_FRAMESIZE
];
/* coded bits */
Word16
*
synth
;
UWord8
*
packed_bits
;
*
data_size
=
0
;
static
Word16
packed_size
[
16
]
=
{
12
,
13
,
15
,
17
,
19
,
20
,
26
,
31
,
5
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
int
i
;
...
...
@@ -416,7 +415,6 @@ static int amr_nb_decode_frame(AVCodecContext * avctx,
static
short
block_size
[
16
]
=
{
12
,
13
,
15
,
17
,
19
,
20
,
26
,
31
,
5
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
enum
Mode
dec_mode
;
int
packet_size
;
*
data_size
=
0
;
//printf("amr_decode_frame data_size=%i buf=0x%X buf_size=%d frameCount=%d!!\n",*data_size,buf,buf_size,s->frameCount);
...
...
@@ -603,7 +601,6 @@ static int amr_wb_decode_frame(AVCodecContext * avctx,
int
offset
=
0
;
int
mode
;
int
packet_size
;
*
data_size
=
0
;
while
(
offset
<
buf_size
)
{
...
...
libavcodec/asv1.c
View file @
53db1cae
...
...
@@ -403,8 +403,6 @@ static int decode_frame(AVCodecContext *avctx,
AVFrame
*
const
p
=
(
AVFrame
*
)
&
a
->
picture
;
int
mb_x
,
mb_y
;
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
)
{
return
0
;
...
...
libavcodec/cljr.c
View file @
53db1cae
...
...
@@ -43,8 +43,6 @@ static int decode_frame(AVCodecContext *avctx,
AVFrame
*
const
p
=
(
AVFrame
*
)
&
a
->
picture
;
int
x
,
y
;
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
)
{
return
0
;
...
...
libavcodec/cyuv.c
View file @
53db1cae
...
...
@@ -81,8 +81,6 @@ static int cyuv_decode_frame(AVCodecContext *avctx,
unsigned
char
cur_byte
;
int
pixel_groups
;
*
data_size
=
0
;
/* sanity check the buffer size: A buffer has 3x16-bytes tables
* followed by (height) lines each with 3 bytes to represent groups
* of 4 pixels. Thus, the total size of the buffer ought to be:
...
...
libavcodec/dv.c
View file @
53db1cae
...
...
@@ -889,7 +889,6 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
{
DVVideoContext
*
s
=
avctx
->
priv_data
;
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
)
return
0
;
...
...
libavcodec/ffv1.c
View file @
53db1cae
...
...
@@ -941,8 +941,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
AVFrame
*
picture
=
data
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
...
...
libavcodec/flac.c
View file @
53db1cae
...
...
@@ -546,8 +546,6 @@ static int flac_decode_frame(AVCodecContext *avctx,
int
tmp
=
0
,
i
,
j
=
0
,
input_buf_size
;
int16_t
*
samples
=
data
,
*
left
,
*
right
;
*
data_size
=
0
;
s
->
avctx
=
avctx
;
if
(
s
->
max_framesize
==
0
){
...
...
libavcodec/h263dec.c
View file @
53db1cae
...
...
@@ -417,8 +417,6 @@ uint64_t time= rdtsc();
s
->
flags
=
avctx
->
flags
;
s
->
flags2
=
avctx
->
flags2
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
{
/* special case for last picture */
...
...
libavcodec/h264.c
View file @
53db1cae
...
...
@@ -5713,8 +5713,6 @@ static int decode_frame(AVCodecContext *avctx,
s
->
flags
=
avctx
->
flags
;
s
->
flags2
=
avctx
->
flags2
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
{
return
0
;
...
...
libavcodec/huffyuv.c
View file @
53db1cae
...
...
@@ -684,8 +684,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
AVFrame
*
picture
=
data
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
...
...
libavcodec/indeo3.c
View file @
53db1cae
...
...
@@ -1058,7 +1058,6 @@ static int indeo3_decode_frame(AVCodecContext *avctx,
/* no supplementary picture */
if
(
buf_size
==
0
)
{
*
data_size
=
0
;
return
0
;
}
...
...
libavcodec/mace.c
View file @
53db1cae
...
...
@@ -421,7 +421,6 @@ puts("mace_decode_frame[6]()");
*
data_size
=
2
*
6
*
buf_size
;
break
;
default:
*
data_size
=
0
;
return
-
1
;
}
return
buf_size
;
...
...
libavcodec/mjpeg.c
View file @
53db1cae
...
...
@@ -1724,8 +1724,6 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
int
start_code
;
AVFrame
*
picture
=
data
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
...
...
@@ -1902,8 +1900,6 @@ static int mjpegb_decode_frame(AVCodecContext *avctx,
uint32_t
dqt_offs
,
dht_offs
,
sof_offs
,
sos_offs
,
second_field_offs
;
uint32_t
field_size
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
...
...
@@ -2015,8 +2011,6 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
uint8_t
*
buf_ptr
,
*
buf_end
,
*
recoded
;
int
i
=
0
,
j
=
0
;
*
data_size
=
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
...
...
libavcodec/mpeg12.c
View file @
53db1cae
...
...
@@ -2791,8 +2791,6 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
MpegEncContext
*
s2
=
&
s
->
mpeg_enc_ctx
;
dprintf
(
"fill_buffer
\n
"
);
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
&&
s2
->
low_delay
==
0
&&
s2
->
next_picture_ptr
)
{
*
picture
=
*
(
AVFrame
*
)
s2
->
next_picture_ptr
;
...
...
libavcodec/mpegaudiodec.c
View file @
53db1cae
...
...
@@ -2520,7 +2520,6 @@ static int decode_frame(AVCodecContext * avctx,
int
len
,
out_size
;
short
*
out_samples
=
data
;
*
data_size
=
0
;
buf_ptr
=
buf
;
while
(
buf_size
>
0
)
{
len
=
s
->
inbuf_ptr
-
s
->
inbuf
;
...
...
libavcodec/oggvorbis.c
View file @
53db1cae
...
...
@@ -264,7 +264,6 @@ static int oggvorbis_decode_frame(AVCodecContext *avccontext,
if
(
!
buf_size
){
//FIXME flush
*
data_size
=
0
;
return
0
;
}
...
...
libavcodec/raw.c
View file @
53db1cae
...
...
@@ -118,7 +118,6 @@ static int raw_decode(AVCodecContext *avctx,
if
(
buf_size
<
bytesNeeded
)
{
memcpy
(
context
->
p
,
buf
,
buf_size
);
context
->
p
+=
buf_size
;
*
data_size
=
0
;
return
buf_size
;
}
...
...
libavcodec/roqvideo.c
View file @
53db1cae
...
...
@@ -450,8 +450,6 @@ static int roq_decode_frame(AVCodecContext *avctx,
{
RoqContext
*
s
=
avctx
->
priv_data
;
*
data_size
=
0
;
if
(
avctx
->
get_buffer
(
avctx
,
&
s
->
current_frame
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
" RoQ: get_buffer() failed
\n
"
);
return
-
1
;
...
...
libavcodec/rv10.c
View file @
53db1cae
...
...
@@ -651,7 +651,6 @@ static int rv10_decode_frame(AVCodecContext *avctx,
/* no supplementary picture */
if
(
buf_size
==
0
)
{
*
data_size
=
0
;
return
0
;
}
...
...
@@ -685,8 +684,6 @@ static int rv10_decode_frame(AVCodecContext *avctx,
}
*
data_size
=
sizeof
(
AVFrame
);
}
else
{
*
data_size
=
0
;
}
return
buf_size
;
...
...
libavcodec/svq1.c
View file @
53db1cae
...
...
@@ -600,7 +600,6 @@ static uint16_t svq1_packet_checksum (uint8_t *data, int length, int value) {
return
value
;
}
#if 0
static
uint16_t
svq1_component_checksum
(
uint16_t
*
pixels
,
int
pitch
,
int
width
,
int
height
,
int
value
)
{
int
x
,
y
;
...
...
@@ -615,7 +614,6 @@ static uint16_t svq1_component_checksum (uint16_t *pixels, int pitch,
return
value
;
}
#endif
static
void
svq1_parse_string
(
GetBitContext
*
bitbuf
,
uint8_t
*
out
)
{
uint8_t
seed
;
...
...
@@ -715,8 +713,6 @@ static int svq1_decode_frame(AVCodecContext *avctx,
int
result
,
i
,
x
,
y
,
width
,
height
;
AVFrame
*
pict
=
data
;
*
data_size
=
0
;
if
(
buf
==
NULL
&&
buf_size
==
0
){
return
0
;
}
...
...
libavcodec/svq3.c
View file @
53db1cae
...
...
@@ -769,8 +769,6 @@ static int svq3_decode_frame (AVCodecContext *avctx,
unsigned
char
*
extradata
;
unsigned
int
size
;
*
data_size
=
0
;
s
->
flags
=
avctx
->
flags
;
s
->
flags2
=
avctx
->
flags2
;
s
->
unrestricted_mv
=
1
;
...
...
libavcodec/truemotion1.c
View file @
53db1cae
...
...
@@ -547,8 +547,6 @@ static int truemotion1_decode_frame(AVCodecContext *avctx,
if
(
buf_size
==
0
)
return
0
;
*
data_size
=
0
;
if
(
truemotion1_decode_header
(
s
)
==
-
1
)
return
-
1
;
...
...
libavcodec/utils.c
View file @
53db1cae
...
...
@@ -488,6 +488,7 @@ int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
{
int
ret
;
*
got_picture_ptr
=
0
;
ret
=
avctx
->
codec
->
decode
(
avctx
,
picture
,
got_picture_ptr
,
buf
,
buf_size
);
...
...
@@ -508,6 +509,7 @@ int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples,
{
int
ret
;
*
frame_size_ptr
=
0
;
ret
=
avctx
->
codec
->
decode
(
avctx
,
samples
,
frame_size_ptr
,
buf
,
buf_size
);
avctx
->
frame_number
++
;
...
...
libavcodec/vcr1.c
View file @
53db1cae
...
...
@@ -45,8 +45,6 @@ static int decode_frame(AVCodecContext *avctx,
uint8_t
*
bytestream
=
buf
;
int
i
,
x
,
y
;
*
data_size
=
0
;
/* special case for last picture */
if
(
buf_size
==
0
)
{
return
0
;
...
...
libavcodec/vmdav.c
View file @
53db1cae
...
...
@@ -522,7 +522,6 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx,
if
(
buf_size
<
16
)
return
buf_size
;
*
data_size
=
0
;
if
(
buf
[
6
]
==
1
)
{
/* the chunk contains audio */
*
data_size
=
vmdaudio_loadsound
(
s
,
output_samples
,
p
,
0
);
...
...
libavcodec/vp3.c
View file @
53db1cae
...
...
@@ -2474,8 +2474,6 @@ static int vp3_decode_frame(AVCodecContext *avctx,
GetBitContext
gb
;
static
int
counter
=
0
;
*
data_size
=
0
;
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
(
s
->
theora
&&
get_bits1
(
&
gb
))
...
...
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