fix last commit

Origin commit data
------------------
Branch: master
Commit: e0effa50e2
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-11-16 (Thu, 16 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-11-16 19:10:40 +01:00
parent 743fd04e0e
commit 354244adcf

View File

@@ -238,7 +238,7 @@ int image_to_mpeg2(const char *image_name, const char *encode_name)
avcodec_register_all();
AVFormatContext *formatContext = avformat_alloc_context();
if (formatContext && (ret = avformat_open_input(&formatContext, path, NULL, NULL)) == 0){
if (formatContext && (ret = avformat_open_input(&formatContext, image_name, NULL, NULL)) == 0){
AVCodecContext *codecContext = open_codec(AVMEDIA_TYPE_VIDEO, formatContext);
if(codecContext){
AVPacket packet;