Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
d6db1c9c
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d6db1c9c
编写于
10月 27, 2002
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
handle direct rendering buffer allocation failure
Originally committed as revision 1075 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
5d9827bc
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
19 addition
and
10 deletion
+19
-10
libavcodec/avcodec.h
libavcodec/avcodec.h
+3
-3
libavcodec/h263dec.c
libavcodec/h263dec.c
+2
-1
libavcodec/mpeg12.c
libavcodec/mpeg12.c
+2
-1
libavcodec/mpegvideo.c
libavcodec/mpegvideo.c
+7
-2
libavcodec/mpegvideo.h
libavcodec/mpegvideo.h
+1
-1
libavcodec/rv10.c
libavcodec/rv10.c
+2
-1
libavcodec/svq1.c
libavcodec/svq1.c
+2
-1
未找到文件。
libavcodec/avcodec.h
浏览文件 @
d6db1c9c
...
...
@@ -5,8 +5,8 @@
#define LIBAVCODEC_VERSION_INT 0x000406
#define LIBAVCODEC_VERSION "0.4.6"
#define LIBAVCODEC_BUILD 463
1
#define LIBAVCODEC_BUILD_STR "463
1
"
#define LIBAVCODEC_BUILD 463
2
#define LIBAVCODEC_BUILD_STR "463
2
"
enum
CodecID
{
CODEC_ID_NONE
,
...
...
@@ -503,7 +503,7 @@ typedef struct AVCodecContext {
* encoding: unused
* decoding: set by user
*/
void
(
*
get_buffer_callback
)(
struct
AVCodecContext
*
c
,
int
width
,
int
height
,
int
pict_type
);
int
(
*
get_buffer_callback
)(
struct
AVCodecContext
*
c
,
int
width
,
int
height
,
int
pict_type
);
/**
* is 1 if the decoded stream contains b frames, 0 otherwise
...
...
libavcodec/h263dec.c
浏览文件 @
d6db1c9c
...
...
@@ -457,7 +457,8 @@ retry:
s
->
next_p_frame_damaged
=
0
;
}
MPV_frame_start
(
s
,
avctx
);
if
(
MPV_frame_start
(
s
,
avctx
)
<
0
)
return
-
1
;
#ifdef DEBUG
printf
(
"qscale=%d
\n
"
,
s
->
qscale
);
...
...
libavcodec/mpeg12.c
浏览文件 @
d6db1c9c
...
...
@@ -1581,7 +1581,8 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
/* start frame decoding */
if
(
s
->
first_slice
)
{
s
->
first_slice
=
0
;
MPV_frame_start
(
s
,
avctx
);
if
(
MPV_frame_start
(
s
,
avctx
)
<
0
)
return
-
1
;
}
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
);
...
...
libavcodec/mpegvideo.c
浏览文件 @
d6db1c9c
...
...
@@ -791,7 +791,7 @@ static void draw_edges_c(UINT8 *buf, int wrap, int width, int height, int w)
}
/* generic function for encode/decode called before a frame is coded/decoded */
void
MPV_frame_start
(
MpegEncContext
*
s
,
AVCodecContext
*
avctx
)
int
MPV_frame_start
(
MpegEncContext
*
s
,
AVCodecContext
*
avctx
)
{
int
i
;
UINT8
*
tmp
;
...
...
@@ -800,7 +800,10 @@ void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
avctx
->
mbskip_table
=
s
->
mbskip_table
;
if
(
avctx
->
flags
&
CODEC_FLAG_DR1
){
avctx
->
get_buffer_callback
(
avctx
,
s
->
width
,
s
->
height
,
s
->
pict_type
);
if
(
avctx
->
get_buffer_callback
(
avctx
,
s
->
width
,
s
->
height
,
s
->
pict_type
)
<
0
){
fprintf
(
stderr
,
"get_buffer() failed
\n
"
);
return
-
1
;
}
s
->
linesize
=
avctx
->
dr_stride
;
s
->
uvlinesize
=
avctx
->
dr_uvstride
;
...
...
@@ -854,6 +857,8 @@ void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s
->
dct_unquantize
=
s
->
dct_unquantize_h263
;
}
else
s
->
dct_unquantize
=
s
->
dct_unquantize_mpeg1
;
return
0
;
}
/* generic function for encode/decode called after a frame has been coded/decoded */
...
...
libavcodec/mpegvideo.h
浏览文件 @
d6db1c9c
...
...
@@ -518,7 +518,7 @@ int DCT_common_init(MpegEncContext *s);
int
MPV_common_init
(
MpegEncContext
*
s
);
void
MPV_common_end
(
MpegEncContext
*
s
);
void
MPV_decode_mb
(
MpegEncContext
*
s
,
DCTELEM
block
[
6
][
64
]);
void
MPV_frame_start
(
MpegEncContext
*
s
,
AVCodecContext
*
avctx
);
int
MPV_frame_start
(
MpegEncContext
*
s
,
AVCodecContext
*
avctx
);
void
MPV_frame_end
(
MpegEncContext
*
s
);
#ifdef HAVE_MMX
void
MPV_common_init_mmx
(
MpegEncContext
*
s
);
...
...
libavcodec/rv10.c
浏览文件 @
d6db1c9c
...
...
@@ -416,7 +416,8 @@ static int rv10_decode_packet(AVCodecContext *avctx,
}
if
(
s
->
mb_x
==
0
&&
s
->
mb_y
==
0
)
{
MPV_frame_start
(
s
,
avctx
);
if
(
MPV_frame_start
(
s
,
avctx
)
<
0
)
return
-
1
;
}
#ifdef DEBUG
...
...
libavcodec/svq1.c
浏览文件 @
d6db1c9c
...
...
@@ -1085,7 +1085,8 @@ static int svq1_decode_frame(AVCodecContext *avctx,
result
=
svq1_decode_frame_header
(
&
s
->
gb
,
s
);
MPV_frame_start
(
s
,
avctx
);
if
(
MPV_frame_start
(
s
,
avctx
)
<
0
)
return
-
1
;
if
(
result
!=
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录