Originally committed as revision 25592 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -960,13 +960,13 @@ static av_cold int encode_init(AVCodecContext *avctx) |
| 960 | 960 |
} |
| 961 | 961 |
if(avctx->stats_in){
|
| 962 | 962 |
char *p= avctx->stats_in; |
| 963 |
+ char *next; |
|
| 963 | 964 |
|
| 964 | 965 |
av_assert0(s->version>=2); |
| 965 | 966 |
|
| 966 | 967 |
for(;;){
|
| 967 | 968 |
for(j=0; j<256; j++){
|
| 968 | 969 |
for(i=0; i<2; i++){
|
| 969 |
- char *next; |
|
| 970 | 970 |
s->rc_stat[j][i]= strtol(p, &next, 0); |
| 971 | 971 |
if(next==p){
|
| 972 | 972 |
av_log(avctx, AV_LOG_ERROR, "2Pass file invalid at %d %d [%s]\n", j,i,p); |
| ... | ... |
@@ -979,7 +979,6 @@ static av_cold int encode_init(AVCodecContext *avctx) |
| 979 | 979 |
for(j=0; j<s->context_count[i]; j++){
|
| 980 | 980 |
for(k=0; k<32; k++){
|
| 981 | 981 |
for(m=0; m<2; m++){
|
| 982 |
- char *next; |
|
| 983 | 982 |
s->rc_stat2[i][j][k][m]= strtol(p, &next, 0); |
| 984 | 983 |
if(next==p){
|
| 985 | 984 |
av_log(avctx, AV_LOG_ERROR, "2Pass file invalid at %d %d %d %d [%s]\n", i,j,k,m,p); |