projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44eb047
)
Make frames non reference by default, so they are disposed of automatically
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 18 Jul 2008 20:59:17 +0000
(20:59 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 18 Jul 2008 20:59:17 +0000
(20:59 +0000)
in MPV_frame_start() if we break out due to an error at a random place.
Fixes issue334
Originally committed as revision 14283 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
ebdfc8c
..
862e7a0
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-2259,6
+2259,7
@@
static int frame_start(H264Context *h){
memset(h->slice_table, -1, (s->mb_height*s->mb_stride-1) * sizeof(uint8_t));
// s->decode= (s->flags&CODEC_FLAG_PSNR) || !s->encoding || s->current_picture.reference /*|| h->contains_intra*/ || 1;
+ s->current_picture_ptr->reference= 0;
return 0;
}