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
e7d96b48
Commit
e7d96b48
authored
Feb 23, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a structural major bug in the macroblock structure management.
parent
592b1bd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
src/video_decoder/video_fifo.h
src/video_decoder/video_fifo.h
+20
-1
src/video_parser/vpar_blocks.c
src/video_parser/vpar_blocks.c
+3
-3
No files found.
src/video_decoder/video_fifo.h
View file @
e7d96b48
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video_fifo.h : FIFO for the pool of video_decoders
* video_fifo.h : FIFO for the pool of video_decoders
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_fifo.h,v 1.
3 2000/12/23 03:10:59 sam
Exp $
* $Id: video_fifo.h,v 1.
4 2001/02/23 14:07:25 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -244,6 +244,25 @@ static __inline__ void vpar_DestroyMacroblock( video_fifo_t * p_fifo,
...
@@ -244,6 +244,25 @@ static __inline__ void vpar_DestroyMacroblock( video_fifo_t * p_fifo,
#endif
#endif
}
}
/*****************************************************************************
* vpar_FreeMacroblock : destroy a macroblock in case of error, without
* updating the macroblock counters
*****************************************************************************/
static
__inline__
void
vpar_FreeMacroblock
(
video_fifo_t
*
p_fifo
,
macroblock_t
*
p_mb
)
{
#ifdef VDEC_SMP
/* Release the macroblock_t structure */
#define P_buffer p_fifo->p_vpar->vbuffer
vlc_mutex_lock
(
&
P_buffer
.
lock
);
P_buffer
.
pp_mb_free
[
++
P_buffer
.
i_index
]
=
p_mb
;
vlc_mutex_unlock
(
&
P_buffer
.
lock
);
#undef P_buffer
#else
;
#endif
}
/*****************************************************************************
/*****************************************************************************
* Prototypes
* Prototypes
*****************************************************************************/
*****************************************************************************/
...
...
src/video_parser/vpar_blocks.c
View file @
e7d96b48
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_blocks.c : blocks parsing
* vpar_blocks.c : blocks parsing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_blocks.c,v 1.7
7 2001/02/19 19:08:59
massiot Exp $
* $Id: vpar_blocks.c,v 1.7
8 2001/02/23 14:07:25
massiot Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
...
@@ -1769,7 +1769,7 @@ if( p_vpar->picture.b_error ) \
...
@@ -1769,7 +1769,7 @@ if( p_vpar->picture.b_error ) \
/* Mark this block as skipped (better than green blocks), and \
/* Mark this block as skipped (better than green blocks), and \
* go to the next slice. */
\
* go to the next slice. */
\
(*pi_mb_address)--; \
(*pi_mb_address)--; \
vpar_
Destroy
Macroblock( &p_vpar->vfifo, p_mb ); \
vpar_
Free
Macroblock( &p_vpar->vfifo, p_mb ); \
return; \
return; \
}
}
...
@@ -1972,7 +1972,7 @@ static __inline__ void ParseMacroblock(
...
@@ -1972,7 +1972,7 @@ static __inline__ void ParseMacroblock(
/* Mark this block as skipped (better than green blocks), and go
/* Mark this block as skipped (better than green blocks), and go
* to the next slice. */
* to the next slice. */
(
*
pi_mb_address
)
--
;
(
*
pi_mb_address
)
--
;
vpar_
Destroy
Macroblock
(
&
p_vpar
->
vfifo
,
p_mb
);
vpar_
Free
Macroblock
(
&
p_vpar
->
vfifo
,
p_mb
);
}
}
}
}
...
...
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