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
a097f004
Commit
a097f004
authored
Nov 29, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg12dec: move first_slice from MpegEncContext to Mpeg1Context
parent
ff300e43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mpeg12dec.c
libavcodec/mpeg12dec.c
+4
-3
mpegvideo.h
libavcodec/mpegvideo.h
+0
-1
No files found.
libavcodec/mpeg12dec.c
View file @
a097f004
...
@@ -52,6 +52,7 @@ typedef struct Mpeg1Context {
...
@@ -52,6 +52,7 @@ typedef struct Mpeg1Context {
AVRational
frame_rate_ext
;
///< MPEG-2 specific framerate modificator
AVRational
frame_rate_ext
;
///< MPEG-2 specific framerate modificator
int
sync
;
///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
int
sync
;
///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
int
closed_gop
;
///< GOP is closed
int
closed_gop
;
///< GOP is closed
int
first_slice
;
int
extradata_decoded
;
int
extradata_decoded
;
}
Mpeg1Context
;
}
Mpeg1Context
;
...
@@ -2243,7 +2244,7 @@ static int decode_chunks(AVCodecContext *avctx,
...
@@ -2243,7 +2244,7 @@ static int decode_chunks(AVCodecContext *avctx,
/* we have a complete image: we try to decompress it */
/* we have a complete image: we try to decompress it */
if
(
mpeg1_decode_picture
(
avctx
,
buf_ptr
,
input_size
)
<
0
)
if
(
mpeg1_decode_picture
(
avctx
,
buf_ptr
,
input_size
)
<
0
)
s2
->
pict_type
=
0
;
s2
->
pict_type
=
0
;
s
2
->
first_slice
=
1
;
s
->
first_slice
=
1
;
last_code
=
PICTURE_START_CODE
;
last_code
=
PICTURE_START_CODE
;
}
else
{
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"ignoring pic after %X
\n
"
,
last_code
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"ignoring pic after %X
\n
"
,
last_code
);
...
@@ -2353,9 +2354,9 @@ static int decode_chunks(AVCodecContext *avctx,
...
@@ -2353,9 +2354,9 @@ static int decode_chunks(AVCodecContext *avctx,
break
;
break
;
}
}
if
(
s
2
->
first_slice
)
{
if
(
s
->
first_slice
)
{
skip_frame
=
0
;
skip_frame
=
0
;
s
2
->
first_slice
=
0
;
s
->
first_slice
=
0
;
if
(
mpeg_field_start
(
s2
,
buf
,
buf_size
)
<
0
)
if
(
mpeg_field_start
(
s2
,
buf
,
buf_size
)
<
0
)
return
-
1
;
return
-
1
;
}
}
...
...
libavcodec/mpegvideo.h
View file @
a097f004
...
@@ -668,7 +668,6 @@ typedef struct MpegEncContext {
...
@@ -668,7 +668,6 @@ typedef struct MpegEncContext {
int
progressive_frame
;
int
progressive_frame
;
int
full_pel
[
2
];
int
full_pel
[
2
];
int
interlaced_dct
;
int
interlaced_dct
;
int
first_slice
;
int
first_field
;
///< is 1 for the first field of a field picture 0 otherwise
int
first_field
;
///< is 1 for the first field of a field picture 0 otherwise
int
drop_frame_timecode
;
///< timecode is in drop frame format.
int
drop_frame_timecode
;
///< timecode is in drop frame format.
int
scan_offset
;
///< reserve space for SVCD scan offset user data.
int
scan_offset
;
///< reserve space for SVCD scan offset user data.
...
...
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