Mercurial > libavcodec.hg
comparison pnm.c @ 2864:95bac7109ff0 libavcodec
Kill some compiler warnings. Compiled code verified identical after changes.
author | mru |
---|---|
date | Tue, 06 Sep 2005 21:25:35 +0000 |
parents | b857807dfe30 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2863:521756176cbb | 2864:95bac7109ff0 |
---|---|
471 pnmctx.bytestream_start= | 471 pnmctx.bytestream_start= |
472 pnmctx.bytestream= pc->buffer; | 472 pnmctx.bytestream= pc->buffer; |
473 pnmctx.bytestream_end= pc->buffer + pc->index; | 473 pnmctx.bytestream_end= pc->buffer + pc->index; |
474 }else{ | 474 }else{ |
475 pnmctx.bytestream_start= | 475 pnmctx.bytestream_start= |
476 pnmctx.bytestream= buf; | 476 pnmctx.bytestream= (uint8_t *) buf; /* casts avoid warnings */ |
477 pnmctx.bytestream_end= buf + buf_size; | 477 pnmctx.bytestream_end= (uint8_t *) buf + buf_size; |
478 } | 478 } |
479 if(pnm_decode_header(avctx, &pnmctx) < 0){ | 479 if(pnm_decode_header(avctx, &pnmctx) < 0){ |
480 if(pnmctx.bytestream < pnmctx.bytestream_end){ | 480 if(pnmctx.bytestream < pnmctx.bytestream_end){ |
481 if(pc->index){ | 481 if(pc->index){ |
482 pc->index=0; | 482 pc->index=0; |