Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
150b8bba
Commit
150b8bba
authored
Sep 19, 2008
by
Rafaël Carré
Committed by
Jean-Paul Saman
Nov 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viddec: fix avc1->h264 packetizing
Signed-off-by:
Jean-Paul Saman
<
jean-paul.saman@m2x.nl
>
parent
5c808483
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/codec/davinci/viddec.c
modules/codec/davinci/viddec.c
+5
-4
No files found.
modules/codec/davinci/viddec.c
View file @
150b8bba
...
@@ -288,7 +288,6 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
...
@@ -288,7 +288,6 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
p_sys
->
p_packetizer
->
pf_decode_sub
=
NULL
;
p_sys
->
p_packetizer
->
pf_decode_sub
=
NULL
;
p_sys
->
p_packetizer
->
pf_packetize
=
NULL
;
p_sys
->
p_packetizer
->
pf_packetize
=
NULL
;
es_format_Copy
(
&
p_sys
->
p_packetizer
->
fmt_in
,
&
p_dec
->
fmt_in
);
es_format_Copy
(
&
p_sys
->
p_packetizer
->
fmt_in
,
&
p_dec
->
fmt_in
);
p_sys
->
p_packetizer
->
fmt_in
=
p_dec
->
fmt_in
;
p_sys
->
p_packetizer
->
p_module
=
module_Need
(
p_sys
->
p_packetizer
,
p_sys
->
p_packetizer
->
p_module
=
module_Need
(
p_sys
->
p_packetizer
,
"packetizer"
,
NULL
,
0
);
"packetizer"
,
NULL
,
0
);
if
(
!
p_sys
->
p_packetizer
->
p_module
)
if
(
!
p_sys
->
p_packetizer
->
p_module
)
...
@@ -296,6 +295,7 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
...
@@ -296,6 +295,7 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
vlc_object_destroy
(
p_sys
->
p_packetizer
);
vlc_object_destroy
(
p_sys
->
p_packetizer
);
p_sys
->
p_packetizer
=
NULL
;
p_sys
->
p_packetizer
=
NULL
;
}
}
es_format_Copy
(
&
p_dec
->
fmt_in
,
&
p_sys
->
p_packetizer
->
fmt_out
);
}
}
}
}
...
@@ -312,7 +312,8 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
...
@@ -312,7 +312,8 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
{
{
block_t
*
p_new_block
=
p_sys
->
p_packetizer
->
pf_packetize
(
block_t
*
p_new_block
=
p_sys
->
p_packetizer
->
pf_packetize
(
p_sys
->
p_packetizer
,
&
p_block
);
p_sys
->
p_packetizer
,
&
p_block
);
p_block
=
p_new_block
;
*
pp_block
=
p_block
=
p_new_block
;
/* keep refernce to packetized blk */
if
(
!
p_block
)
if
(
!
p_block
)
return
NULL
;
return
NULL
;
}
}
...
@@ -409,8 +410,8 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
...
@@ -409,8 +410,8 @@ static picture_t *DecodeVideoBlockInner( decoder_t *p_dec, block_t **pp_block, i
abort();
abort();
}
}
#endif
#endif
if
(
!
p_sys
->
p_packetizer
&&
i_extra
==
0
&&
p_dec
->
fmt_in
.
i_extra
>
0
)
if
(
i_extra
==
0
&&
p_dec
->
fmt_in
.
i_extra
>
0
)
{
/* FIXME : doesn't decode, for example, avc1 (avcC) */
{
msg_Dbg
(
p_dec
,
"Trying again with p_extra"
);
msg_Dbg
(
p_dec
,
"Trying again with p_extra"
);
return
DecodeVideoBlockInner
(
p_dec
,
pp_block
,
p_dec
->
fmt_in
.
i_extra
);
return
DecodeVideoBlockInner
(
p_dec
,
pp_block
,
p_dec
->
fmt_in
.
i_extra
);
}
}
...
...
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