# HG changeset patch # User michael # Date 1096106791 0 # Node ID 507690ff49a25880a7799a35f016bf1cd32efdd6 # Parent 0dfe4e32b19cdb57c3eaa1ce51736887fc957b7c assertion when playing AVC/H.264 streams fix by (Loren Merritt ) diff -r 0dfe4e32b19c -r 507690ff49a2 h264.c --- 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_ishort_ref_count; out_i++){ int best_i=-1; - int best_poc=-1; + int best_poc=INT_MAX; for(i=0; ishort_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{