Revision c04c3282 libavformat/img.c

View differences:

libavformat/img.c
120 120
        return -ENOMEM;
121 121
    }
122 122

  
123
    if (ap && ap->image_format)
123
    if (ap->image_format)
124 124
        s->img_fmt = ap->image_format;
125 125

  
126 126
    pstrcpy(s->path, sizeof(s->path), s1->filename);
......
133 133
    else
134 134
        s->is_pipe = 1;
135 135

  
136
    if (!ap || !ap->time_base.num) {
136
    if (!ap->time_base.num) {
137 137
        st->codec->time_base= (AVRational){1,25};
138 138
    } else {
139 139
        st->codec->time_base= ap->time_base;
......
255 255
    int i;
256 256

  
257 257
    /* find output image format */
258
    if (ap && ap->image_format) {
258
    if (ap->image_format) {
259 259
        img_fmt = ap->image_format;
260 260
    } else {
261 261
        img_fmt = guess_image_format(s->filename);

Also available in: Unified diff