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
a1bb0823
Commit
a1bb0823
authored
May 21, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec: correct consumed bytes for decoders
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
307562be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
utils.c
libavcodec/utils.c
+8
-2
audio.mak
tests/fate/audio.mak
+2
-4
No files found.
libavcodec/utils.c
View file @
a1bb0823
...
...
@@ -1482,8 +1482,11 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
emms_c
();
//needed to avoid an emms_c() call before every return;
avctx
->
pkt
=
NULL
;
if
(
did_split
)
if
(
did_split
)
{
ff_packet_free_side_data
(
&
tmp
);
if
(
ret
==
tmp
.
size
)
ret
=
avpkt
->
size
;
}
if
(
*
got_picture_ptr
){
avctx
->
frame_number
++
;
...
...
@@ -1583,8 +1586,11 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
}
avctx
->
pkt
=
NULL
;
if
(
did_split
)
if
(
did_split
)
{
ff_packet_free_side_data
(
&
tmp
);
if
(
ret
==
tmp
.
size
)
ret
=
avpkt
->
size
;
}
}
return
ret
;
}
...
...
tests/fate/audio.mak
View file @
a1bb0823
...
...
@@ -40,10 +40,8 @@ fate-nellymoser-aref-encode: CMD = enc_dec_pcm flv wav s16le $(REF) -c:a nellymo
fate-nellymoser-aref-encode: CMP = stddev
fate-nellymoser-aref-encode: REF = ./tests/data/acodec-16000-1.ref.wav
fate-nellymoser-aref-encode: CMP_SHIFT = -1172
#fate-nellymoser-aref-encode: CMP_TARGET = 9617
#fate-nellymoser-aref-encode: SIZE_TOLERANCE = 268
fate-nellymoser-aref-encode: CMP_TARGET = 10216
fate-nellymoser-aref-encode: SIZE_TOLERANCE = 1300
fate-nellymoser-aref-encode: CMP_TARGET = 9617
fate-nellymoser-aref-encode: SIZE_TOLERANCE = 268
FATE_SAMPLES_AUDIO += fate-sierra-vmd-audio
fate-sierra-vmd-audio: CMD = framecrc -i $(SAMPLES)/vmd/12.vmd -vn
...
...
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