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:
57288c4
)
Simplify mmco setup code used in IDR pictures.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 25 Jul 2008 12:12:25 +0000
(12:12 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 25 Jul 2008 12:12:25 +0000
(12:12 +0000)
Originally committed as revision 14387 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
093304c
..
2620300
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-3632,9
+3632,9
@@
static int decode_ref_pic_marking(H264Context *h, GetBitContext *gb){
h->mmco_index= 0;
if(h->nal_unit_type == NAL_IDR_SLICE){ //FIXME fields
s->broken_link= get_bits1(gb) -1;
- h->mmco[0].long_arg= get_bits1(gb) - 1; // current_long_term_idx
- if(h->mmco[0].long_arg != -1){
+ if(get_bits1(gb)){
h->mmco[0].opcode= MMCO_LONG;
+ h->mmco[0].long_arg= 0;
h->mmco_index= 1;
}
}else{