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
cf49d590
Commit
cf49d590
authored
Nov 03, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ansi: set w/h correctly at the top
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b568eeba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ansi.c
libavcodec/ansi.c
+2
-4
No files found.
libavcodec/ansi.c
View file @
cf49d590
...
...
@@ -183,8 +183,8 @@ static int execute_code(AVCodecContext * avctx, int c)
{
AnsiContext
*
s
=
avctx
->
priv_data
;
int
ret
,
i
;
int
width
=
0
;
int
height
=
0
;
int
width
=
avctx
->
width
;
int
height
=
avctx
->
height
;
switch
(
c
)
{
case
'A'
:
//Cursor Up
...
...
@@ -208,8 +208,6 @@ static int execute_code(AVCodecContext * avctx, int c)
case
'l'
:
//reset screen mode
if
(
s
->
nb_args
<
2
)
s
->
args
[
0
]
=
DEFAULT_SCREEN_MODE
;
width
=
avctx
->
width
;
height
=
avctx
->
height
;
switch
(
s
->
args
[
0
])
{
case
0
:
case
1
:
case
4
:
case
5
:
case
13
:
case
19
:
//320x200 (25 rows)
s
->
font
=
avpriv_cga_font
;
...
...
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