Mercurial > libavcodec.hg
diff h264.c @ 2255:507690ff49a2 libavcodec
assertion when playing AVC/H.264 streams fix by (Loren Merritt <lorenm at u dot washington dot edu>)
| author | michael |
|---|---|
| date | Sat, 25 Sep 2004 10:06:31 +0000 |
| parents | 0dfe4e32b19c |
| children | cd43603c46f9 |
line wrap: on
line diff
--- a/h264.c Sat Sep 25 09:59:36 2004 +0000 +++ b/h264.c Sat Sep 25 10:06:31 2004 +0000 @@ -2531,7 +2531,7 @@ for(out_i=0; out_i<h->short_ref_count; out_i++){ int best_i=-1; - int best_poc=-1; + int best_poc=INT_MAX; for(i=0; i<h->short_ref_count; i++){ const int poc= h->short_ref[i]->poc; @@ -2899,6 +2899,8 @@ av_log(h->s.avctx, AV_LOG_ERROR, "illegal memory management control operation %d\n", opcode); return -1; } + if(opcode == MMCO_END) + break; } h->mmco_index= i; }else{
