Fixes: CID1428858(1/2) Logically dead code
Unified · Split
| @@ -215,10 +215,8 @@ static int dec_enc(AVPacket *pkt, const AVCodec *enc_codec) · 214 unmodified lines | ||
| 215 | 215 | |
| 216 | 216 | fail: |
| 217 | 217 | av_frame_free(&frame); |
| 218 | − if (ret < 0) | |
| 219 | − return ret; | |
| 220 | 218 | } |
| 221 | − return 0; | |
| 219 | + return ret; | |
| 222 | 220 | } |
| 223 | 221 | |
| 224 | 222 | int main(int argc, char **argv) |