diff --git a/CMakeLists.txt b/CMakeLists.txt index e607c140..180eb911 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -317,6 +317,10 @@ makeInput(DTSC dtsc) makeInput(DTSCCrypt dtsccrypt) makeInput(MP3 mp3) makeInput(FLV flv) +if (DEFINED WITH_AV ) + makeInput(AV av) + target_link_libraries(MistInAV avformat avcodec avutil) +endif() makeInput(OGG ogg) makeInput(Buffer buffer) makeInput(ISMV ismv)#LTS diff --git a/src/input/input_av.cpp b/src/input/input_av.cpp index 20ba219b..38577edc 100644 --- a/src/input/input_av.cpp +++ b/src/input/input_av.cpp @@ -237,11 +237,11 @@ namespace Mist { pkt["offset"] = (long long)((packet.pts - packet.dts) * 1000 * strm->time_base.num / strm->time_base.den); } pkt.netPrepare(); - lastPack.reInit(pkt.toNetPacked().data(), pkt.toNetPacked().size()); + thisPacket.reInit(pkt.toNetPacked().data(), pkt.toNetPacked().size()); av_free_packet(&packet); return;//success! } - lastPack.null(); + thisPacket.null(); setup(); //failure :-( DEBUG_MSG(DLVL_FAIL, "getNext failed");