Revision c04c3282 libavformat/img2.c

View differences:

libavformat/img2.c
187 187
        st->need_parsing= 1;
188 188
    }
189 189

  
190
    if (!ap || !ap->time_base.num) {
190
    if (!ap->time_base.num) {
191 191
        av_set_pts_info(st, 60, 1, 25);
192 192
    } else {
193 193
        av_set_pts_info(st, 60, ap->time_base.num, ap->time_base.den);
194 194
    }
195 195

  
196
    if(ap && ap->width && ap->height){
196
    if(ap->width && ap->height){
197 197
        st->codec->width = ap->width;
198 198
        st->codec->height= ap->height;
199 199
    }

Also available in: Unified diff