Fixed version mismatch in ffmpeg h264
@@ -333,16 +333,12 @@ static int libavcodec_compress(H264_CONTEXT* h264, const BYTE** pSrcYuv, const U
if (!libavcodec_create_encoder(h264))
return -1;
-#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 39, 100)
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
sys->packet = &sys->bufferpacket;
- WINPR_ASSERT(sys->packet);
av_packet_unref(sys->packet);
-#else
- av_packet_free(&sys->packet);
-#endif
-#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 133, 100)
av_init_packet(sys->packet);
#else
+ av_packet_free(&sys->packet);
sys->packet = av_packet_alloc();
#endif
if (!sys->packet)
