Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
f593628e
Commit
f593628e
authored
Aug 30, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Replace raw picture frame swapping hack.
parent
a8085231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
avconv.c
avconv.c
+3
-5
No files found.
avconv.c
View file @
f593628e
...
@@ -1098,11 +1098,10 @@ static void do_video_out(AVFormatContext *s,
...
@@ -1098,11 +1098,10 @@ static void do_video_out(AVFormatContext *s,
{
{
int
nb_frames
,
i
,
ret
,
format_video_sync
;
int
nb_frames
,
i
,
ret
,
format_video_sync
;
AVFrame
*
final_picture
;
AVFrame
*
final_picture
;
AVCodecContext
*
enc
,
*
dec
;
AVCodecContext
*
enc
;
double
sync_ipts
;
double
sync_ipts
;
enc
=
ost
->
st
->
codec
;
enc
=
ost
->
st
->
codec
;
dec
=
ist
->
st
->
codec
;
sync_ipts
=
get_sync_ipts
(
ost
)
/
av_q2d
(
enc
->
time_base
);
sync_ipts
=
get_sync_ipts
(
ost
)
/
av_q2d
(
enc
->
time_base
);
...
@@ -1156,15 +1155,14 @@ static void do_video_out(AVFormatContext *s,
...
@@ -1156,15 +1155,14 @@ static void do_video_out(AVFormatContext *s,
/* raw pictures are written as AVPicture structure to
/* raw pictures are written as AVPicture structure to
avoid any copies. We support temporarily the older
avoid any copies. We support temporarily the older
method. */
method. */
AVFrame
*
old_frame
=
enc
->
cod
ed_frame
;
enc
->
coded_frame
->
interlaced_frame
=
in_picture
->
interlac
ed_frame
;
enc
->
coded_frame
=
dec
->
coded_frame
;
//FIXME/XXX remove this hack
enc
->
coded_frame
->
top_field_first
=
in_picture
->
top_field_first
;
pkt
.
data
=
(
uint8_t
*
)
final_picture
;
pkt
.
data
=
(
uint8_t
*
)
final_picture
;
pkt
.
size
=
sizeof
(
AVPicture
);
pkt
.
size
=
sizeof
(
AVPicture
);
pkt
.
pts
=
av_rescale_q
(
ost
->
sync_opts
,
enc
->
time_base
,
ost
->
st
->
time_base
);
pkt
.
pts
=
av_rescale_q
(
ost
->
sync_opts
,
enc
->
time_base
,
ost
->
st
->
time_base
);
pkt
.
flags
|=
AV_PKT_FLAG_KEY
;
pkt
.
flags
|=
AV_PKT_FLAG_KEY
;
write_frame
(
s
,
&
pkt
,
ost
->
st
->
codec
,
ost
->
bitstream_filters
);
write_frame
(
s
,
&
pkt
,
ost
->
st
->
codec
,
ost
->
bitstream_filters
);
enc
->
coded_frame
=
old_frame
;
}
else
{
}
else
{
AVFrame
big_picture
;
AVFrame
big_picture
;
...
...
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