Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e7d96b48
Commit
e7d96b48
authored
Feb 23, 2001
by
Christophe Massiot
Browse files
* Fixed a structural major bug in the macroblock structure management.
parent
592b1bd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/video_decoder/video_fifo.h
View file @
e7d96b48
...
...
@@ -2,7 +2,7 @@
* video_fifo.h : FIFO for the pool of video_decoders
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_fifo.h,v 1.
3
200
0/1
2/23
03:10:59 sam
Exp $
* $Id: video_fifo.h,v 1.
4
200
1/0
2/23
14:07:25 massiot
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -244,6 +244,25 @@ static __inline__ void vpar_DestroyMacroblock( video_fifo_t * p_fifo,
#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
*****************************************************************************/
...
...
src/video_parser/vpar_blocks.c
View file @
e7d96b48
...
...
@@ -2,7 +2,7 @@
* vpar_blocks.c : blocks parsing
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_blocks.c,v 1.7
7
2001/02/
19
1
9
:0
8:59
massiot Exp $
* $Id: vpar_blocks.c,v 1.7
8
2001/02/
23
1
4
:0
7:25
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
...
...
@@ -1769,7 +1769,7 @@ if( p_vpar->picture.b_error ) \
/* Mark this block as skipped (better than green blocks), and \
* go to the next slice. */
\
(*pi_mb_address)--; \
vpar_
Destroy
Macroblock( &p_vpar->vfifo, p_mb ); \
vpar_
Free
Macroblock( &p_vpar->vfifo, p_mb ); \
return; \
}
...
...
@@ -1972,7 +1972,7 @@ static __inline__ void ParseMacroblock(
/* Mark this block as skipped (better than green blocks), and go
* to the next slice. */
(
*
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