Fixes: CID1428858(1/2) Logically dead code
Showing the changes to doc/examples/vaapi_transcode.c (1 of 1 file). Show all
Unified · Split
| @@ -215,10 +215,8 @@ static int dec_enc(AVPacket *pkt, const AVCodec *enc_codec) · 214 unmodified lines | |||
| 215 | 215 | ||
| 216 | fail: | 216 | fail: |
| 217 | av_frame_free(&frame); | 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 | int main(int argc, char **argv) | 222 | int main(int argc, char **argv) |