mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
fix close fp
This commit is contained in:
@@ -254,8 +254,8 @@ int image_to_mpeg2(const char *image_name, const char *encode_name)
|
|||||||
/* add sequence end code to have a real mpeg file */
|
/* add sequence end code to have a real mpeg file */
|
||||||
uint8_t endcode[] = { 0, 0, 1, 0xb7 };
|
uint8_t endcode[] = { 0, 0, 1, 0xb7 };
|
||||||
fwrite(endcode, 1, sizeof(endcode), fp);
|
fwrite(endcode, 1, sizeof(endcode), fp);
|
||||||
fclose(fp);
|
|
||||||
}
|
}
|
||||||
|
fclose(fp);
|
||||||
}
|
}
|
||||||
avcodec_close(codecContext);
|
avcodec_close(codecContext);
|
||||||
av_free_packet(&packet);
|
av_free_packet(&packet);
|
||||||
|
Reference in New Issue
Block a user