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
71c32f19
Commit
71c32f19
authored
Oct 01, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not call (av_)abort()
Originally committed as revision 3544 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9fe5a7b8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
11 deletions
+10
-11
avienc.c
libavformat/avienc.c
+2
-2
ffm.c
libavformat/ffm.c
+4
-5
mpeg.c
libavformat/mpeg.c
+1
-1
raw.c
libavformat/raw.c
+1
-1
rm.c
libavformat/rm.c
+1
-1
yuv4mpeg.c
libavformat/yuv4mpeg.c
+1
-1
No files found.
libavformat/avienc.c
View file @
71c32f19
...
@@ -422,7 +422,7 @@ static int avi_write_header(AVFormatContext *s)
...
@@ -422,7 +422,7 @@ static int avi_write_header(AVFormatContext *s)
put_le32
(
pb
,
0
);
put_le32
(
pb
,
0
);
break
;
break
;
default:
default:
av_abort
()
;
return
-
1
;
}
}
end_tag
(
pb
,
strh
);
end_tag
(
pb
,
strh
);
...
@@ -438,7 +438,7 @@ static int avi_write_header(AVFormatContext *s)
...
@@ -438,7 +438,7 @@ static int avi_write_header(AVFormatContext *s)
}
}
break
;
break
;
default:
default:
av_abort
()
;
return
-
1
;
}
}
end_tag
(
pb
,
strf
);
end_tag
(
pb
,
strf
);
...
...
libavformat/ffm.c
View file @
71c32f19
...
@@ -190,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s)
...
@@ -190,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s)
put_le16
(
pb
,
codec
->
frame_size
);
put_le16
(
pb
,
codec
->
frame_size
);
break
;
break
;
default:
default:
av_abort
()
;
return
-
1
;
}
}
/* hack to have real time */
/* hack to have real time */
if
(
ffm_nopts
)
if
(
ffm_nopts
)
...
@@ -208,8 +208,7 @@ static int ffm_write_header(AVFormatContext *s)
...
@@ -208,8 +208,7 @@ static int ffm_write_header(AVFormatContext *s)
/* init packet mux */
/* init packet mux */
ffm
->
packet_ptr
=
ffm
->
packet
;
ffm
->
packet_ptr
=
ffm
->
packet
;
ffm
->
packet_end
=
ffm
->
packet
+
ffm
->
packet_size
-
FFM_HEADER_SIZE
;
ffm
->
packet_end
=
ffm
->
packet
+
ffm
->
packet_size
-
FFM_HEADER_SIZE
;
if
(
ffm
->
packet_end
<
ffm
->
packet
)
assert
(
ffm
->
packet_end
>=
ffm
->
packet
);
av_abort
();
ffm
->
frame_offset
=
0
;
ffm
->
frame_offset
=
0
;
ffm
->
pts
=
0
;
ffm
->
pts
=
0
;
ffm
->
first_packet
=
1
;
ffm
->
first_packet
=
1
;
...
@@ -340,7 +339,7 @@ static int ffm_read_data(AVFormatContext *s,
...
@@ -340,7 +339,7 @@ static int ffm_read_data(AVFormatContext *s,
get_buffer
(
pb
,
ffm
->
packet
,
ffm
->
packet_size
-
FFM_HEADER_SIZE
);
get_buffer
(
pb
,
ffm
->
packet
,
ffm
->
packet_size
-
FFM_HEADER_SIZE
);
ffm
->
packet_end
=
ffm
->
packet
+
(
ffm
->
packet_size
-
FFM_HEADER_SIZE
-
fill_size
);
ffm
->
packet_end
=
ffm
->
packet
+
(
ffm
->
packet_size
-
FFM_HEADER_SIZE
-
fill_size
);
if
(
ffm
->
packet_end
<
ffm
->
packet
)
if
(
ffm
->
packet_end
<
ffm
->
packet
)
av_abort
()
;
return
-
1
;
/* if first packet or resynchronization packet, we must
/* if first packet or resynchronization packet, we must
handle it specifically */
handle it specifically */
if
(
ffm
->
first_packet
||
(
frame_offset
&
0x8000
))
{
if
(
ffm
->
first_packet
||
(
frame_offset
&
0x8000
))
{
...
@@ -355,7 +354,7 @@ static int ffm_read_data(AVFormatContext *s,
...
@@ -355,7 +354,7 @@ static int ffm_read_data(AVFormatContext *s,
}
}
ffm
->
first_packet
=
0
;
ffm
->
first_packet
=
0
;
if
((
frame_offset
&
0x7ffff
)
<
FFM_HEADER_SIZE
)
if
((
frame_offset
&
0x7ffff
)
<
FFM_HEADER_SIZE
)
av_abort
()
;
return
-
1
;
ffm
->
packet_ptr
=
ffm
->
packet
+
(
frame_offset
&
0x7fff
)
-
FFM_HEADER_SIZE
;
ffm
->
packet_ptr
=
ffm
->
packet
+
(
frame_offset
&
0x7fff
)
-
FFM_HEADER_SIZE
;
if
(
!
first
)
if
(
!
first
)
break
;
break
;
...
...
libavformat/mpeg.c
View file @
71c32f19
...
@@ -314,7 +314,7 @@ static int mpeg_mux_init(AVFormatContext *ctx)
...
@@ -314,7 +314,7 @@ static int mpeg_mux_init(AVFormatContext *ctx)
s
->
video_bound
++
;
s
->
video_bound
++
;
break
;
break
;
default:
default:
av_abort
()
;
return
-
1
;
}
}
}
}
/* if no SCR, use first stream (audio) */
/* if no SCR, use first stream (audio) */
...
...
libavformat/raw.c
View file @
71c32f19
...
@@ -557,7 +557,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -557,7 +557,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
packet_size
=
avpicture_get_size
(
st
->
codec
.
pix_fmt
,
width
,
height
);
packet_size
=
avpicture_get_size
(
st
->
codec
.
pix_fmt
,
width
,
height
);
if
(
packet_size
<
0
)
if
(
packet_size
<
0
)
av_abort
()
;
return
-
1
;
if
(
av_new_packet
(
pkt
,
packet_size
)
<
0
)
if
(
av_new_packet
(
pkt
,
packet_size
)
<
0
)
return
AVERROR_IO
;
return
AVERROR_IO
;
...
...
libavformat/rm.c
View file @
71c32f19
...
@@ -315,7 +315,7 @@ static int rm_write_header(AVFormatContext *s)
...
@@ -315,7 +315,7 @@ static int rm_write_header(AVFormatContext *s)
stream
->
total_frames
=
stream
->
nb_packets
;
stream
->
total_frames
=
stream
->
nb_packets
;
break
;
break
;
default:
default:
av_abort
()
;
return
-
1
;
}
}
}
}
...
...
libavformat/yuv4mpeg.c
View file @
71c32f19
...
@@ -214,7 +214,7 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -214,7 +214,7 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
packet_size
=
avpicture_get_size
(
st
->
codec
.
pix_fmt
,
width
,
height
);
packet_size
=
avpicture_get_size
(
st
->
codec
.
pix_fmt
,
width
,
height
);
if
(
packet_size
<
0
)
if
(
packet_size
<
0
)
av_abort
()
;
return
-
1
;
if
(
av_new_packet
(
pkt
,
packet_size
)
<
0
)
if
(
av_new_packet
(
pkt
,
packet_size
)
<
0
)
return
AVERROR_IO
;
return
AVERROR_IO
;
...
...
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