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
65a31a0d
Commit
65a31a0d
authored
Sep 01, 2012
by
Peter Ross
Committed by
Michael Niedermayer
Sep 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ansi: erase screen on first frame
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3ac718d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
ansi.c
libavcodec/ansi.c
+5
-0
ansi
tests/ref/fate/ansi
+3
-3
No files found.
libavcodec/ansi.c
View file @
65a31a0d
...
...
@@ -58,6 +58,7 @@ typedef struct {
int
attributes
;
/**< attribute flags */
int
fg
;
/**< foreground color */
int
bg
;
/**< background color */
int
first_frame
;
/* ansi parser state machine */
enum
{
...
...
@@ -353,6 +354,10 @@ static int decode_frame(AVCodecContext *avctx,
s
->
frame
.
pict_type
=
AV_PICTURE_TYPE_I
;
s
->
frame
.
palette_has_changed
=
1
;
set_palette
((
uint32_t
*
)
s
->
frame
.
data
[
1
]);
if
(
!
s
->
first_frame
)
{
erase_screen
(
avctx
);
s
->
first_frame
=
1
;
}
while
(
buf
<
buf_end
)
{
switch
(
s
->
state
)
{
...
...
tests/ref/fate/ansi
View file @
65a31a0d
#tb 0: 1/25
0, 0, 0, 1, 768000, 0x
c4865718
0, 1, 1, 1, 768000, 0x
2c7de258
0, 2, 2, 1, 768000, 0x0
d6b8dc6
0, 0, 0, 1, 768000, 0x
772dd3d0
0, 1, 1, 1, 768000, 0x
d7dab1d1
0, 2, 2, 1, 768000, 0x0
e56f2d3
0, 3, 3, 1, 768000, 0x11c1fb8e
0, 4, 4, 1, 768000, 0x72d12da9
0, 5, 5, 1, 768000, 0x39c7a70d
...
...
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