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
d07730dd
Commit
d07730dd
authored
Nov 08, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix image stream copy
Originally committed as revision 3662 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
359fa0fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
avcodec.h
libavcodec/avcodec.h
+2
-1
raw.c
libavcodec/raw.c
+2
-2
utils.c
libavformat/utils.c
+3
-1
No files found.
libavcodec/avcodec.h
View file @
d07730dd
...
...
@@ -17,7 +17,7 @@ extern "C" {
#define FFMPEG_VERSION_INT 0x000409
#define FFMPEG_VERSION "0.4.9-pre1"
#define LIBAVCODEC_BUILD 472
8
#define LIBAVCODEC_BUILD 472
9
#define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
#define LIBAVCODEC_VERSION FFMPEG_VERSION
...
...
@@ -1996,6 +1996,7 @@ void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift);
const
char
*
avcodec_get_pix_fmt_name
(
int
pix_fmt
);
void
avcodec_set_dimensions
(
AVCodecContext
*
s
,
int
width
,
int
height
);
enum
PixelFormat
avcodec_get_pix_fmt
(
const
char
*
name
);
unsigned
int
avcodec_pix_fmt_to_codec_tag
(
enum
PixelFormat
p
);
#define FF_LOSS_RESOLUTION 0x0001
/* loss due to resolution change */
#define FF_LOSS_DEPTH 0x0002
/* loss due to color depth change */
...
...
libavcodec/raw.c
View file @
d07730dd
...
...
@@ -64,7 +64,7 @@ static int findPixelFormat(unsigned int fourcc)
return
PIX_FMT_YUV420P
;
}
static
unsigned
int
findFourCC
(
in
t
fmt
)
unsigned
int
avcodec_pix_fmt_to_codec_tag
(
enum
PixelForma
t
fmt
)
{
const
PixelFormatTag
*
tags
=
pixelFormatTags
;
while
(
tags
->
pix_fmt
>=
0
)
{
...
...
@@ -152,7 +152,7 @@ static int raw_init_encoder(AVCodecContext *avctx)
avctx
->
coded_frame
->
pict_type
=
FF_I_TYPE
;
avctx
->
coded_frame
->
key_frame
=
1
;
if
(
!
avctx
->
codec_tag
)
avctx
->
codec_tag
=
findFourCC
(
avctx
->
pix_fmt
);
avctx
->
codec_tag
=
avcodec_pix_fmt_to_codec_tag
(
avctx
->
pix_fmt
);
return
0
;
}
...
...
libavformat/utils.c
View file @
d07730dd
...
...
@@ -1748,10 +1748,12 @@ int av_find_stream_info(AVFormatContext *ic)
count
++
;
}
/* set real frame rate info */
for
(
i
=
0
;
i
<
ic
->
nb_streams
;
i
++
)
{
st
=
ic
->
streams
[
i
];
if
(
st
->
codec
.
codec_type
==
CODEC_TYPE_VIDEO
)
{
if
(
st
->
codec
.
codec_id
==
CODEC_ID_RAWVIDEO
&&
!
st
->
codec
.
codec_tag
)
st
->
codec
.
codec_tag
=
avcodec_pix_fmt_to_codec_tag
(
st
->
codec
.
pix_fmt
);
/* set real frame rate info */
/* compute the real frame rate for telecine */
if
((
st
->
codec
.
codec_id
==
CODEC_ID_MPEG1VIDEO
||
st
->
codec
.
codec_id
==
CODEC_ID_MPEG2VIDEO
)
&&
...
...
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